summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-02-20 09:04:34 +0100
committerStefan Roese <sr@denx.de>2007-02-20 09:04:34 +0100
commit735dd97b1b20e777d059c7b389fe9d70cd3f80c7 (patch)
treeeb62a0abe8bdea88c563380c302a88fa64eff151 /cpu
parent620d3c9a14affca29a5c4e575e9f355c2bd4aed2 (diff)
downloadu-boot-imx-735dd97b1b20e777d059c7b389fe9d70cd3f80c7.zip
u-boot-imx-735dd97b1b20e777d059c7b389fe9d70cd3f80c7.tar.gz
u-boot-imx-735dd97b1b20e777d059c7b389fe9d70cd3f80c7.tar.bz2
[PATCH 1_4] Merge common get_dev() routines for block devices
Each of the filesystem drivers duplicate the get_dev routine. This change merges them into a single function in part.c Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/pxa/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/pxa/mmc.c b/cpu/pxa/mmc.c
index f7020ee..c57d0d5 100644
--- a/cpu/pxa/mmc.c
+++ b/cpu/pxa/mmc.c
@@ -37,7 +37,7 @@ static block_dev_desc_t mmc_dev;
block_dev_desc_t * mmc_get_dev(int dev)
{
- return ((block_dev_desc_t *)&mmc_dev);
+ return (dev == 0) ? &mmc_dev : NULL;
}
/*