mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mmc: mxs-mmc: get rid of the use of cpu_is_xxx
The register HW_SSP_VERSION is broken for ssp version detection, as the address of the register is different between imx23 and imx28. Let's use platform_device_id to detect the device, so that the use of cpu_is_xxx can be removed. Signed-off-by: Shawn Guo <[email protected]> Acked-by: Chris Ball <[email protected]>
This commit is contained in:
parent
e0bf141db2
commit
ef9b4d3996
5 changed files with 40 additions and 26 deletions
|
|
@ -93,8 +93,8 @@ static struct clk_lookup xbus_lookups[] __initdata = {
|
|||
};
|
||||
|
||||
static struct clk_lookup ssp_lookups[] __initdata = {
|
||||
{ .dev_id = "mxs-mmc.0", },
|
||||
{ .dev_id = "mxs-mmc.1", },
|
||||
{ .dev_id = "imx23-mmc.0", },
|
||||
{ .dev_id = "imx23-mmc.1", },
|
||||
{ .dev_id = "80010000.ssp", },
|
||||
{ .dev_id = "80034000.ssp", },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -148,22 +148,22 @@ static struct clk_lookup xbus_lookups[] __initdata = {
|
|||
};
|
||||
|
||||
static struct clk_lookup ssp0_lookups[] __initdata = {
|
||||
{ .dev_id = "mxs-mmc.0", },
|
||||
{ .dev_id = "imx28-mmc.0", },
|
||||
{ .dev_id = "80010000.ssp", },
|
||||
};
|
||||
|
||||
static struct clk_lookup ssp1_lookups[] __initdata = {
|
||||
{ .dev_id = "mxs-mmc.1", },
|
||||
{ .dev_id = "imx28-mmc.1", },
|
||||
{ .dev_id = "80012000.ssp", },
|
||||
};
|
||||
|
||||
static struct clk_lookup ssp2_lookups[] __initdata = {
|
||||
{ .dev_id = "mxs-mmc.2", },
|
||||
{ .dev_id = "imx28-mmc.2", },
|
||||
{ .dev_id = "80014000.ssp", },
|
||||
};
|
||||
|
||||
static struct clk_lookup ssp3_lookups[] __initdata = {
|
||||
{ .dev_id = "mxs-mmc.3", },
|
||||
{ .dev_id = "imx28-mmc.3", },
|
||||
{ .dev_id = "80016000.ssp", },
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue