]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: pxa/gumstix: fix attaching properties to vbus gpio device
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Aug 2024 16:12:58 +0000 (09:12 -0700)
committerArnd Bergmann <arnd@arndb.de>
Wed, 7 Aug 2024 12:43:54 +0000 (14:43 +0200)
commitcddaac0459c004c439510bd109929466b0d5908e
tree5e57bcfd5ad54143a64004e38571497fd245907b
parente1793fea0350330a6a50721ecb2ad66846e0c51e
ARM: pxa/gumstix: fix attaching properties to vbus gpio device

Commit f1d6588af93b tried to convert GPIO lookup tables to software
properties for the vbus gpio device, bit forgot the most important
step: actually attaching the new properties to the device.

Also fix up the name of the property array to reflect the board name,
and add missing gpio/property.h and devices.h includes absence of which
causes compile failures on some configurations.

Switch "#ifdef CONFIG_USB_PXA25X" to "#if IS_ENABLED(CONFIG_USB_PXA25X)"
because it should not matter if the driver is buolt in or a module, it
still need vbus controls.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Fixes: f1d6588af93b ("ARM: pxa/gumstix: convert vbus gpio to use software nodes")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-pxa/gumstix.c