mmc: core: Remove legacy 'enable-sdio-wakeup' DT property support
PATCH 1/1 mmc: core: Remove legacy 'enable-sdio-wakeup' DT property support
The 'enable-sdio-wakeup' device tree property was marked as legacy and superseded by the standard 'wakeup-source' property in commit 71a0151c5c82 ("Documentation: devicetree: fix reference to legacy wakeup properties") back in 2015.
Since it has been a decade and the migration to the standard property has long been completed, remove this obsolete legacy support.
---
drivers/mmc/core/host.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mmc/core/host.c +1 -2
@@ -379,8 +379,7 @@ int mmc_of_parse(struct mmc_host *host) host->caps2 |=MMC_CAP2_FULL_PWR_CYCLE_IN_SUSPEND ;if (device_property_read_bool (dev,"keep-power-in-suspend" )) host->pm_caps |=MMC_PM_KEEP_POWER ; -if (device_property_read_bool (dev,"wakeup-source" ) || -device_property_read_bool (dev,"enable-sdio-wakeup" ))/* legacy */ +if (device_property_read_bool (dev,"wakeup-source" )) host->pm_caps |=MMC_PM_WAKE_SDIO_IRQ ;if (device_property_read_bool (dev,"mmc-ddr-3_3v" )) host->caps |=MMC_CAP_3_3V_DDR ;
Signature · 1 line
2.7.4
Quoted 10 lines · Shawn Lin
The 'enable-sdio-wakeup' device tree property was marked as legacy and superseded by the standard 'wakeup-source' property in commit
71a0151c5c82("Documentation: devicetree: fix reference to legacy wakeup properties") back in 2015.Since it has been a decade and the migration to the standard property has long been completed, remove this obsolete legacy support.
Signed-off-by Shawn Lin <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 22 lines
---
drivers/mmc/core/host.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/mmc/core/host.c +1
-3@@ -379,8 +379,7 @@ int mmc_of_parse(struct mmc_host *host) host->caps2 |=MMC_CAP2_FULL_PWR_CYCLE_IN_SUSPEND ;if (device_property_read_bool (dev,"keep-power-in-suspend" )) host->pm_caps |=MMC_PM_KEEP_POWER ; -if (device_property_read_bool (dev,"wakeup-source" ) || -device_property_read_bool (dev,"enable-sdio-wakeup" ))/* legacy */ +if (device_property_read_bool (dev,"wakeup-source" )) host->pm_caps |=MMC_PM_WAKE_SDIO_IRQ ;if (device_property_read_bool (dev,"mmc-ddr-3_3v" )) host->caps |=MMC_CAP_3_3V_DDR ; --2.7.4