ARM: tegra: paz00: Handle device properties with software node API
Subsystems (3)
PATCH 1/1 ARM: tegra: paz00: Handle device properties with software node API
The old device property API is going to be removed. Replacing the device_add_properties() call with the software node API equivalent, device_create_managed_software_node().
Signed-off-by Heikki Krogerus <[email protected]>
--- arch/arm/mach-tegra/board-paz00.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-tegra/board-paz00.c +1 -1
@@ -36,7 +36,7 @@ static struct gpiod_lookup_table wifi_gpio_lookup = {void __init tegra_paz00_wifikill_init (void ) { -platform_device_add_properties (&wifi_rfkill_device, wifi_rfkill_prop); +device_create_managed_software_node (&wifi_rfkill_device.dev, wifi_rfkill_prop,NULL );gpiod_add_lookup_table (&wifi_gpio_lookup);platform_device_register (&wifi_rfkill_device); }
Signature · 1 line
2.30.2
Quoted 14 lines · Heikki Krogerus
The old device property API is going to be removed. Replacing the
device_add_properties()call with the software node API equivalent,device_create_managed_software_node().Signed-off-by Heikki Krogerus <[email protected]>--- arch/arm/mach-tegra/board-paz00.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-tegra/board-paz00.c +0
-0
arch/arm/mach-tegra/board-paz00.c static struct gpiod_lookup_table wifi_gpio_lookup = { · line 42
Quoted 8 lines
arch/arm/mach-tegra/board-paz00.c +1
-1@@ -36,7 +36,7 @@ static struct gpiod_lookup_table wifi_gpio_lookup = {void __init tegra_paz00_wifikill_init (void ) { -platform_device_add_properties (&wifi_rfkill_device, wifi_rfkill_prop); +device_create_managed_software_node (&wifi_rfkill_device.dev, wifi_rfkill_prop,NULL );gpiod_add_lookup_table (&wifi_gpio_lookup);platform_device_register (&wifi_rfkill_device); }
Sorry, I forgot that I had already send this. Please ignore this one.
Thanks,
Signature · 1 line
heikki