diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-09-29 14:33:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-19 15:52:36 -0400 |
commit | cc787081bcab5a83051c2a936927634d066e7284 (patch) | |
tree | ad46b16507f831d6ebd237228d0d6d245c4fb9a4 /drivers/bcma/driver_chipcommon_sflash.c | |
parent | 360dc31e9cc3f74d0d91a9d19b154c12592f4ffc (diff) |
bcma: add and use constants for the flash windows
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_chipcommon_sflash.c')
-rw-r--r-- | drivers/bcma/driver_chipcommon_sflash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bcma/driver_chipcommon_sflash.c b/drivers/bcma/driver_chipcommon_sflash.c index 2c4eec2ca5a0..a0993fcd13c2 100644 --- a/drivers/bcma/driver_chipcommon_sflash.c +++ b/drivers/bcma/driver_chipcommon_sflash.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | static struct resource bcma_sflash_resource = { | 13 | static struct resource bcma_sflash_resource = { |
14 | .name = "bcma_sflash", | 14 | .name = "bcma_sflash", |
15 | .start = BCMA_SFLASH, | 15 | .start = BCMA_SOC_FLASH2, |
16 | .end = 0, | 16 | .end = 0, |
17 | .flags = IORESOURCE_MEM | IORESOURCE_READONLY, | 17 | .flags = IORESOURCE_MEM | IORESOURCE_READONLY, |
18 | }; | 18 | }; |
@@ -116,7 +116,7 @@ int bcma_sflash_init(struct bcma_drv_cc *cc) | |||
116 | return -ENOTSUPP; | 116 | return -ENOTSUPP; |
117 | } | 117 | } |
118 | 118 | ||
119 | sflash->window = BCMA_SFLASH; | 119 | sflash->window = BCMA_SOC_FLASH2; |
120 | sflash->blocksize = e->blocksize; | 120 | sflash->blocksize = e->blocksize; |
121 | sflash->numblocks = e->numblocks; | 121 | sflash->numblocks = e->numblocks; |
122 | sflash->size = sflash->blocksize * sflash->numblocks; | 122 | sflash->size = sflash->blocksize * sflash->numblocks; |