From: Maxime Ripard Date: Fri, 7 Sep 2012 12:18:13 +0000 (+0200) Subject: gpio: 74x164: Add device tree support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a90a9fb454cef1fc533b192c5f7ee1f07e93c6b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git gpio: 74x164: Add device tree support Signed-off-by: Maxime Ripard Acked-by: Florian Fainelli Acked-by: Thomas Petazzoni Signed-off-by: Linus Walleij --- 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) 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),