Merge tag 'mmc-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[sfrench/cifs-2.6.git] / arch / arm / mach-pxa / palmld.c
index 93d1124d21c248be5733f8befe46d0e72d2153a2..bf2b0cfc86df2f13ebcc9fb986c0544df6d33311 100644 (file)
@@ -288,8 +288,20 @@ static struct platform_device palmld_ide_device = {
        .id     = -1,
 };
 
+static struct gpiod_lookup_table palmld_ide_gpio_table = {
+       .dev_id = "pata_palmld",
+       .table = {
+               GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMLD_IDE_PWEN,
+                           "power", GPIO_ACTIVE_HIGH),
+               GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMLD_IDE_RESET,
+                           "reset", GPIO_ACTIVE_LOW),
+               { },
+       },
+};
+
 static void __init palmld_ide_init(void)
 {
+       gpiod_add_lookup_table(&palmld_ide_gpio_table);
        platform_device_register(&palmld_ide_device);
 }
 #else