summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2018-02-26 15:12:18 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit2cca9221d074b6a788a86c8954753bcdd641b8e3 (patch)
tree7b5fe492639804ad45b1d6a839dc5ee54ec6647c /drivers/of
parent40f63206f94e9a95e5ed78052e27f2c457f661a0 (diff)
MLK-17621-2 mmc: add feature of setting slot index via devicetree alias
Add feature of setting slot index via devicetree alias, to hard code the mmc/sd root device. The patch requires additional alias_id fix or it won't work. Note: minor device number keep independent with this device alias. Refer to the commit 35928d6c6a76 ("mmc: Allow setting slot index via devicetree alias"). Acked-by: Leonard Crestez <leonard.crestez@nxp.com> Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 42073482ab64..36f6bb39de5b 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -2077,6 +2077,7 @@ int of_alias_max_index(const char *stem)
return max;
}
+EXPORT_SYMBOL_GPL(of_alias_max_index);
/**
* of_alias_scan - Scan all properties of the 'aliases' node