summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-acpi.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2017-10-19 13:41:43 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-10-30 11:50:40 +0100
commita2038497e817107f194b8c34632df6aabe50eb30 (patch)
treedeb8005789224a80307791124f55bd9d48c6c926 /drivers/mmc/host/sdhci-acpi.c
parentd6dc425ae595e14026beac3720e43edd70215dc8 (diff)
downloadlinux-stable-a2038497e817107f194b8c34632df6aabe50eb30.tar.gz
linux-stable-a2038497e817107f194b8c34632df6aabe50eb30.tar.bz2
linux-stable-a2038497e817107f194b8c34632df6aabe50eb30.zip
mmc: sdhci-acpi: Use helper function acpi_device_uid()
Make use of acpi_device_uid() instead of open coding. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-acpi.c')
-rw-r--r--drivers/mmc/host/sdhci-acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
index 08ae0ff13513..e4b7fac5efb2 100644
--- a/drivers/mmc/host/sdhci-acpi.c
+++ b/drivers/mmc/host/sdhci-acpi.c
@@ -443,7 +443,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
return -ENODEV;
hid = acpi_device_hid(device);
- uid = device->pnp.unique_id;
+ uid = acpi_device_uid(device);
/* Power on the SDHCI controller and its children */
acpi_device_fix_up_power(device);