]> asedeno.scripts.mit.edu Git - linux.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)
commit90e1d8ccdbdb2384948c5f5067b0f28848ca339f
tree4570a6f36b2761880c1ac500343813598d529488
parent3602785b341a9545eee97f6ce634091da1a2b56d
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