summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@arri.de>2020-01-23 13:20:42 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-01-27 10:57:42 +0100
commit7085927d0835f15d1388e8d51f53cc85872a21cc (patch)
tree7e4c28c643b25c854f12b468a87347a1233bd705 /drivers
parent4f4d6fc426a466109b7f8b20fb2fdfaad9130aa3 (diff)
downloadbarebox-7085927d0835f15d1388e8d51f53cc85872a21cc.tar.gz
barebox-7085927d0835f15d1388e8d51f53cc85872a21cc.tar.xz
mci: remove param_probe member from struct mci
After adding the parameter, the pointer isn't required anymore. Signed-off-by: Christian Eggers <ceggers@arri.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/mci-core.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 67257bcd18..7f2d3d46d8 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -1798,6 +1798,7 @@ static int mci_detect(struct device_d *dev)
int mci_register(struct mci_host *host)
{
struct mci *mci;
+ struct param_d *param_probe;
int ret;
mci = xzalloc(sizeof(*mci));
@@ -1829,11 +1830,11 @@ int mci_register(struct mci_host *host)
dev_info(mci->host->hw_dev, "registered as %s\n", dev_name(&mci->dev));
- mci->param_probe = dev_add_param_bool(&mci->dev, "probe",
+ param_probe = dev_add_param_bool(&mci->dev, "probe",
mci_set_probe, NULL, &mci->probe, mci);
- if (IS_ERR(mci->param_probe) && PTR_ERR(mci->param_probe) != -ENOSYS) {
- ret = PTR_ERR(mci->param_probe);
+ if (IS_ERR(param_probe) && PTR_ERR(param_probe) != -ENOSYS) {
+ ret = PTR_ERR(param_probe);
dev_dbg(&mci->dev, "Failed to add 'probe' parameter to the MCI device\n");
goto err_unregister;
}