]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: 74x164: Add device tree support
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 7 Sep 2012 12:18:13 +0000 (14:18 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 7 Sep 2012 21:05:23 +0000 (23:05 +0200)
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-74x164.c

index ef8baacb650a7603d1288582e0f05e94de5c9c49..2e31bd35769a749ccb1a3e6e6ff0e652347c4ab4 100644 (file)
@@ -148,10 +148,17 @@ static int __devexit gen_74x164_remove(struct spi_device *spi)
        return ret;
 }
 
+static const struct of_device_id gen_74x164_dt_ids[] = {
+       { .compatible = "fairchild,74hc595" },
+       {},
+};
+MODULE_DEVICE_TABLE(of, gen_74x164_dt_ids);
+
 static struct spi_driver gen_74x164_driver = {
        .driver = {
                .name           = "74x164",
                .owner          = THIS_MODULE,
+               .of_match_table = of_match_ptr(gen_74x164_dt_ids),
        },
        .probe          = gen_74x164_probe,
        .remove         = __devexit_p(gen_74x164_remove),