diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-12-27 14:58:48 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-12-27 14:58:48 +0000 |
commit | 7acd18eec00b36e87d482f924687b7281d882b42 (patch) | |
tree | 3e4370267151420e590118d11e642251d0727a65 /target/linux/adm5120/files/drivers/mtd | |
parent | c9381a98193a60a8d850191962f5f51f88730cc3 (diff) | |
download | upstream-7acd18eec00b36e87d482f924687b7281d882b42.tar.gz upstream-7acd18eec00b36e87d482f924687b7281d882b42.tar.bz2 upstream-7acd18eec00b36e87d482f924687b7281d882b42.zip |
[adm5120] change switch register access macros
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9962 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/drivers/mtd')
-rw-r--r-- | target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c b/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c index 824d2f5e8e..b84492f46b 100644 --- a/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c +++ b/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c @@ -261,7 +261,7 @@ static int adm5120_flash_initinfo(struct adm5120_flash_info *info, if (info->amap.window_size == 0) { /* get memory window size */ - t = SW_READ_REG(MEMCTRL) >> fdesc->srs_shift; + t = SW_READ_REG(SWITCH_REG_MEMCTRL) >> fdesc->srs_shift; t &= MEMCTRL_SRS_MASK; info->amap.window_size = flash_sizes[t]; } |