diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-09-07 08:18:13 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-09-07 17:05:23 -0400 |
commit | 0a90a9fb454cef1fc533b192c5f7ee1f07e93c6b (patch) | |
tree | f9cb4b6115329e4e323d76853d03cc8de26b4c0d /drivers/gpio/gpio-74x164.c | |
parent | 061505fd396c89b358a1b7a655565b2bb05b2fdc (diff) |
gpio: 74x164: Add device tree support
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>
Diffstat (limited to 'drivers/gpio/gpio-74x164.c')
-rw-r--r-- | drivers/gpio/gpio-74x164.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c index ef8baacb650a..2e31bd35769a 100644 --- a/drivers/gpio/gpio-74x164.c +++ b/drivers/gpio/gpio-74x164.c | |||
@@ -148,10 +148,17 @@ static int __devexit gen_74x164_remove(struct spi_device *spi) | |||
148 | return ret; | 148 | return ret; |
149 | } | 149 | } |
150 | 150 | ||
151 | static const struct of_device_id gen_74x164_dt_ids[] = { | ||
152 | { .compatible = "fairchild,74hc595" }, | ||
153 | {}, | ||
154 | }; | ||
155 | MODULE_DEVICE_TABLE(of, gen_74x164_dt_ids); | ||
156 | |||
151 | static struct spi_driver gen_74x164_driver = { | 157 | static struct spi_driver gen_74x164_driver = { |
152 | .driver = { | 158 | .driver = { |
153 | .name = "74x164", | 159 | .name = "74x164", |
154 | .owner = THIS_MODULE, | 160 | .owner = THIS_MODULE, |
161 | .of_match_table = of_match_ptr(gen_74x164_dt_ids), | ||
155 | }, | 162 | }, |
156 | .probe = gen_74x164_probe, | 163 | .probe = gen_74x164_probe, |
157 | .remove = __devexit_p(gen_74x164_remove), | 164 | .remove = __devexit_p(gen_74x164_remove), |