Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
[sfrench/cifs-2.6.git] / arch / arm / mach-iop32x / glantank.c
index 84cdb4587b340b0f89c5d87fb99d157ca192a882..5a45d616d9ac2fc0342f5529e770f93682556415 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/i2c.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
+#include <linux/gpio/machine.h>
 #include <mach/hardware.h>
 #include <asm/irq.h>
 #include <asm/mach/arch.h>
@@ -185,6 +186,8 @@ static void glantank_power_off(void)
 static void __init glantank_init_machine(void)
 {
        register_iop32x_gpio();
+       gpiod_add_lookup_table(&iop3xx_i2c0_gpio_lookup);
+       gpiod_add_lookup_table(&iop3xx_i2c1_gpio_lookup);
        platform_device_register(&iop3xx_i2c0_device);
        platform_device_register(&iop3xx_i2c1_device);
        platform_device_register(&glantank_flash_device);