]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pltfm: Do not use parent as the host's device
authorPawel Moll <pawel.moll@arm.com>
Tue, 12 Aug 2014 10:37:52 +0000 (11:37 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:58:58 +0000 (13:58 +0200)
commit490d0fb0c47a6c989afec8cdbfecbf7af0b81b61
tree4f56865ffbffd1d94cf2d89c433bf82edd6d7eed
parentf2a50292107a5e3261df82eaf434b5b60a3de22c
mmc: sdhci-pltfm: Do not use parent as the host's device

The code selecting a device for the sdhci host has been
continuously tweaked (8cbf1b0f801b0cae382488dfd63cf9f4871f578d
"mmc: sdhci-pltfm: Add structure for host-specific data" and
2c84597910aced2e82587375b63d6cd787eee7a9 "mmc: sdhci-pltfm: dt
device does not pass parent to sdhci_alloc_host" while there
does not seem to be any reason to use platform device's parent
in the first place.

The comment saying "Some PCI-based MFD need the parent here"
seem to refer to Timberdale FPGA driver (the only MFD driver
registering SDHCI cell, drivers/mfd/timberdale.c) but again,
the only situation when parent device matter is runtime PM,
which is not implemented for Timberdale.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pltfm.c