diff options
author | Heikki Krogerus <[email protected]> | 2021-08-17 13:24:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-08-18 16:08:11 +0200 |
commit | 6d6e03dbe5eff2044e0ae32acbf8b5dad6efb045 (patch) | |
tree | 311bbe82fa2de91986664d05fa761e284d45d76a | |
parent | 3b35f2a6a625126c57475aa56b5357d8e80b404c (diff) |
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().
Reviewed-by: Andy Shevchenko <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Signed-off-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | arch/arm/mach-tegra/board-paz00.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c index b5c990a7a5af..18d37f90cdfe 100644 --- a/arch/arm/mach-tegra/board-paz00.c +++ b/arch/arm/mach-tegra/board-paz00.c @@ -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); } |