gpio: samsung: Add terminating entry for exynos_pinctrl_ids
PATCH 1/1 gpio: samsung: Add terminating entry for exynos_pinctrl_ids
The of_device_id table is supposed to be zero-terminated.
--- drivers/gpio/gpio-samsung.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-samsung.c +1 -0
@@ -3026,6 +3026,7 @@ static __init int samsung_gpiolib_init(void)static const struct of_device_id exynos_pinctrl_ids[] = { { .compatible ="samsung,pinctrl-exynos4210" , }, { .compatible ="samsung,pinctrl-exynos4x12" , }, + { } };for_each_matching_node (pctrl_np, exynos_pinctrl_ids)if (pctrl_np &&of_device_is_available (pctrl_np))
Signature · 1 line
1.7.9.5
Quoted 12 lines · Axel Lin
The
of_device_idtable is supposed to be zero-terminated.Signed-off-by Axel Lin <[email protected]>--- drivers/gpio/gpio-samsung.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpio-samsung.c +0
-0
drivers/gpio/gpio-samsung.c static __init int samsung_gpiolib_init(void) · line 3029
Quoted 4 lines
drivers/gpio/gpio-samsung.c +1
-0@@ -3026,6 +3026,7 @@ static __init int samsung_gpiolib_init(void)static const struct of_device_id exynos_pinctrl_ids[] = { { .compatible ="samsung,pinctrl-exynos4210" , }, { .compatible ="samsung,pinctrl-exynos4x12" , }, + { }
Wasn't somebody complaining that this was unnecessary recently?
Ohwell, I'll let the Samsung people comment first...
Yours,
Linus Walleij
Grant Likely
Acked-byQuoted 21 lines · Linus Walleij
Quoted 12 lines · Axel Lin
The
of_device_idtable is supposed to be zero-terminated.Signed-off-by Axel Lin <[email protected]>--- drivers/gpio/gpio-samsung.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpio-samsung.c +0
-0drivers/gpio/gpio-samsung.c static __init int samsung_gpiolib_init(void) · line 3029
Quoted 4 lines
drivers/gpio/gpio-samsung.c +1
-0@@ -3026,6 +3026,7 @@ static __init int samsung_gpiolib_init(void)static const struct of_device_id exynos_pinctrl_ids[] = { { .compatible ="samsung,pinctrl-exynos4210" , }, { .compatible ="samsung,pinctrl-exynos4x12" , }, + { }Wasn't somebody complaining that this was unnecessary recently?
Quoted 1 line
Ohwell, I'll let the Samsung people comment first...
And this doesn't apply on my gpio/next branch. I assume it applies somewhere else so I'll ignore for now. :-)
g.