diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-07-09 10:13:56 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-09 10:13:56 -0400 |
commit | 012b7d339ce8c42d41e35b35c4acc3dd29501d52 (patch) | |
tree | 82eb9a984d741dffdca64e8a51be3473b8723b50 /drivers/mmc | |
parent | eb7fffa39a3f114832df54a3e373d7580d8fe757 (diff) |
MMC: MMCI: use AMBA bus accessors
Rather than open coding the accessors for decoding peripheral IDs,
use the macros already provided.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mmci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index e1aa8471ab1c..ac43f395eec0 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -515,12 +515,12 @@ static int __devinit mmci_probe(struct amba_device *dev, struct amba_id *id) | |||
515 | 515 | ||
516 | host = mmc_priv(mmc); | 516 | host = mmc_priv(mmc); |
517 | host->mmc = mmc; | 517 | host->mmc = mmc; |
518 | /* Bits 12 thru 19 is the designer */ | 518 | |
519 | host->hw_designer = (dev->periphid >> 12) & 0xff; | 519 | host->hw_designer = amba_manf(dev); |
520 | /* Bits 20 thru 23 is the revison */ | 520 | host->hw_revision = amba_rev(dev); |
521 | host->hw_revision = (dev->periphid >> 20) & 0xf; | ||
522 | DBG(host, "designer ID = 0x%02x\n", host->hw_designer); | 521 | DBG(host, "designer ID = 0x%02x\n", host->hw_designer); |
523 | DBG(host, "revision = 0x%01x\n", host->hw_revision); | 522 | DBG(host, "revision = 0x%01x\n", host->hw_revision); |
523 | |||
524 | host->clk = clk_get(&dev->dev, NULL); | 524 | host->clk = clk_get(&dev->dev, NULL); |
525 | if (IS_ERR(host->clk)) { | 525 | if (IS_ERR(host->clk)) { |
526 | ret = PTR_ERR(host->clk); | 526 | ret = PTR_ERR(host->clk); |