]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci_f_sdh30: add ACPI support
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 8 Jan 2018 15:44:19 +0000 (15:44 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Jan 2018 14:50:53 +0000 (15:50 +0100)
commit85b94e2d337482f68f62011c9ac0596260a8804c
tree4570a6f36b2761880c1ac500343813598d529488
parent4800db2950ed14228fc341a3f4fe3089dca32260
mmc: sdhci_f_sdh30: add ACPI support

The Fujitsu SDH30 SDHCI controller may be described as a SCX0002 ACPI
device on ACPI platforms incorporating the Socionext SynQuacer SoC.

Given that mmc_of_parse() has already been made ACPI/DT agnostic,
making the SDH30 driver ACPI capable is actually rather simple:
all we need to do is make the call to sdhci_get_of_property() [which
does not set any properties we care about] and the clock handling
dependent on whether we are dealing with a DT device, and exposing
the ACPI id via the platform_driver struct and the module metadata.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Kconfig
drivers/mmc/host/sdhci_f_sdh30.c