diff options
author | Ben Dooks <ben-linux@fluff.org> | 2005-10-28 10:26:42 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 10:26:42 -0400 |
commit | a0e0adb96ebe6bf0b8b3fe4cd6c214b1e8964609 (patch) | |
tree | 26c736c20c8d05bb8239cc68b427eccdadd0e341 /arch/arm/mach-s3c2410 | |
parent | 42d3a120fe9a1831b88e7037ce0b048d82433b09 (diff) |
[ARM] 3034/1: S3C2410 - fix size of devices in devs.c
Patch from Ben Dooks
From: Guillaume GOURAT <guillaume.gourat@nexvision.fr>
A number of devices have an extra byte on the
end of their areas due to mis-calculating the
.end field of their resources
Signed-off-by: Guillaume GOURAT <guillaume.gourat@nexvision.fr>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/devs.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-s3c2410/devs.c b/arch/arm/mach-s3c2410/devs.c index 0077937a7ab8..8a37236b04ab 100644 --- a/arch/arm/mach-s3c2410/devs.c +++ b/arch/arm/mach-s3c2410/devs.c | |||
@@ -47,7 +47,7 @@ struct platform_device *s3c24xx_uart_devs[3]; | |||
47 | static struct resource s3c_usb_resource[] = { | 47 | static struct resource s3c_usb_resource[] = { |
48 | [0] = { | 48 | [0] = { |
49 | .start = S3C2410_PA_USBHOST, | 49 | .start = S3C2410_PA_USBHOST, |
50 | .end = S3C2410_PA_USBHOST + S3C24XX_SZ_USBHOST, | 50 | .end = S3C2410_PA_USBHOST + S3C24XX_SZ_USBHOST - 1, |
51 | .flags = IORESOURCE_MEM, | 51 | .flags = IORESOURCE_MEM, |
52 | }, | 52 | }, |
53 | [1] = { | 53 | [1] = { |
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(s3c_device_usb); | |||
77 | static struct resource s3c_lcd_resource[] = { | 77 | static struct resource s3c_lcd_resource[] = { |
78 | [0] = { | 78 | [0] = { |
79 | .start = S3C2410_PA_LCD, | 79 | .start = S3C2410_PA_LCD, |
80 | .end = S3C2410_PA_LCD + S3C24XX_SZ_LCD, | 80 | .end = S3C2410_PA_LCD + S3C24XX_SZ_LCD - 1, |
81 | .flags = IORESOURCE_MEM, | 81 | .flags = IORESOURCE_MEM, |
82 | }, | 82 | }, |
83 | [1] = { | 83 | [1] = { |
@@ -117,7 +117,7 @@ EXPORT_SYMBOL(set_s3c2410fb_info); | |||
117 | static struct resource s3c_nand_resource[] = { | 117 | static struct resource s3c_nand_resource[] = { |
118 | [0] = { | 118 | [0] = { |
119 | .start = S3C2410_PA_NAND, | 119 | .start = S3C2410_PA_NAND, |
120 | .end = S3C2410_PA_NAND + S3C24XX_SZ_NAND, | 120 | .end = S3C2410_PA_NAND + S3C24XX_SZ_NAND - 1, |
121 | .flags = IORESOURCE_MEM, | 121 | .flags = IORESOURCE_MEM, |
122 | } | 122 | } |
123 | }; | 123 | }; |
@@ -136,7 +136,7 @@ EXPORT_SYMBOL(s3c_device_nand); | |||
136 | static struct resource s3c_usbgadget_resource[] = { | 136 | static struct resource s3c_usbgadget_resource[] = { |
137 | [0] = { | 137 | [0] = { |
138 | .start = S3C2410_PA_USBDEV, | 138 | .start = S3C2410_PA_USBDEV, |
139 | .end = S3C2410_PA_USBDEV + S3C24XX_SZ_USBDEV, | 139 | .end = S3C2410_PA_USBDEV + S3C24XX_SZ_USBDEV - 1, |
140 | .flags = IORESOURCE_MEM, | 140 | .flags = IORESOURCE_MEM, |
141 | }, | 141 | }, |
142 | [1] = { | 142 | [1] = { |
@@ -161,7 +161,7 @@ EXPORT_SYMBOL(s3c_device_usbgadget); | |||
161 | static struct resource s3c_wdt_resource[] = { | 161 | static struct resource s3c_wdt_resource[] = { |
162 | [0] = { | 162 | [0] = { |
163 | .start = S3C2410_PA_WATCHDOG, | 163 | .start = S3C2410_PA_WATCHDOG, |
164 | .end = S3C2410_PA_WATCHDOG + S3C24XX_SZ_WATCHDOG, | 164 | .end = S3C2410_PA_WATCHDOG + S3C24XX_SZ_WATCHDOG - 1, |
165 | .flags = IORESOURCE_MEM, | 165 | .flags = IORESOURCE_MEM, |
166 | }, | 166 | }, |
167 | [1] = { | 167 | [1] = { |
@@ -186,7 +186,7 @@ EXPORT_SYMBOL(s3c_device_wdt); | |||
186 | static struct resource s3c_i2c_resource[] = { | 186 | static struct resource s3c_i2c_resource[] = { |
187 | [0] = { | 187 | [0] = { |
188 | .start = S3C2410_PA_IIC, | 188 | .start = S3C2410_PA_IIC, |
189 | .end = S3C2410_PA_IIC + S3C24XX_SZ_IIC, | 189 | .end = S3C2410_PA_IIC + S3C24XX_SZ_IIC - 1, |
190 | .flags = IORESOURCE_MEM, | 190 | .flags = IORESOURCE_MEM, |
191 | }, | 191 | }, |
192 | [1] = { | 192 | [1] = { |
@@ -211,7 +211,7 @@ EXPORT_SYMBOL(s3c_device_i2c); | |||
211 | static struct resource s3c_iis_resource[] = { | 211 | static struct resource s3c_iis_resource[] = { |
212 | [0] = { | 212 | [0] = { |
213 | .start = S3C2410_PA_IIS, | 213 | .start = S3C2410_PA_IIS, |
214 | .end = S3C2410_PA_IIS + S3C24XX_SZ_IIS, | 214 | .end = S3C2410_PA_IIS + S3C24XX_SZ_IIS -1, |
215 | .flags = IORESOURCE_MEM, | 215 | .flags = IORESOURCE_MEM, |
216 | } | 216 | } |
217 | }; | 217 | }; |
@@ -265,7 +265,7 @@ EXPORT_SYMBOL(s3c_device_rtc); | |||
265 | static struct resource s3c_adc_resource[] = { | 265 | static struct resource s3c_adc_resource[] = { |
266 | [0] = { | 266 | [0] = { |
267 | .start = S3C2410_PA_ADC, | 267 | .start = S3C2410_PA_ADC, |
268 | .end = S3C2410_PA_ADC + S3C24XX_SZ_ADC, | 268 | .end = S3C2410_PA_ADC + S3C24XX_SZ_ADC - 1, |
269 | .flags = IORESOURCE_MEM, | 269 | .flags = IORESOURCE_MEM, |
270 | }, | 270 | }, |
271 | [1] = { | 271 | [1] = { |
@@ -288,7 +288,7 @@ struct platform_device s3c_device_adc = { | |||
288 | static struct resource s3c_sdi_resource[] = { | 288 | static struct resource s3c_sdi_resource[] = { |
289 | [0] = { | 289 | [0] = { |
290 | .start = S3C2410_PA_SDI, | 290 | .start = S3C2410_PA_SDI, |
291 | .end = S3C2410_PA_SDI + S3C24XX_SZ_SDI, | 291 | .end = S3C2410_PA_SDI + S3C24XX_SZ_SDI - 1, |
292 | .flags = IORESOURCE_MEM, | 292 | .flags = IORESOURCE_MEM, |
293 | }, | 293 | }, |
294 | [1] = { | 294 | [1] = { |
@@ -465,7 +465,7 @@ EXPORT_SYMBOL(s3c_device_timer3); | |||
465 | static struct resource s3c_camif_resource[] = { | 465 | static struct resource s3c_camif_resource[] = { |
466 | [0] = { | 466 | [0] = { |
467 | .start = S3C2440_PA_CAMIF, | 467 | .start = S3C2440_PA_CAMIF, |
468 | .end = S3C2440_PA_CAMIF + S3C2440_SZ_CAMIF, | 468 | .end = S3C2440_PA_CAMIF + S3C2440_SZ_CAMIF - 1, |
469 | .flags = IORESOURCE_MEM, | 469 | .flags = IORESOURCE_MEM, |
470 | }, | 470 | }, |
471 | [1] = { | 471 | [1] = { |