Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Maxime Ripard and committed by
Linus Walleij
0a90a9fb 061505fd

+7
+7
drivers/gpio/gpio-74x164.c
··· 148 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 157 static struct spi_driver gen_74x164_driver = { 152 158 .driver = { 153 159 .name = "74x164", 154 160 .owner = THIS_MODULE, 161 + .of_match_table = of_match_ptr(gen_74x164_dt_ids), 155 162 }, 156 163 .probe = gen_74x164_probe, 157 164 .remove = __devexit_p(gen_74x164_remove),