Commit 2f07eda4 authored by Philippe Gerum's avatar Philippe Gerum

drivers/gpio: mxc: look for imx7d devices

parent a2262d5b
...@@ -20,9 +20,15 @@ ...@@ -20,9 +20,15 @@
#define RTDM_SUBCLASS_MXC 2 #define RTDM_SUBCLASS_MXC 2
static const char *compat_array[] = {
"fsl,imx6q-gpio",
"fsl,imx7d-gpio",
};
static int __init mxc_gpio_init(void) static int __init mxc_gpio_init(void)
{ {
return rtdm_gpiochip_scan_of(NULL, "fsl,imx6q-gpio", return rtdm_gpiochip_scan_array_of(NULL, compat_array,
ARRAY_SIZE(compat_array),
RTDM_SUBCLASS_MXC); RTDM_SUBCLASS_MXC);
} }
module_init(mxc_gpio_init); module_init(mxc_gpio_init);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment