Skip to contentSkip to conversation

ARM: SAMSUNG: Cleanup resources by using macro

PATCH New Kukjin Kim 1 participant 1 message Oct 6, 2011

Subsystems (3)
lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

PATCH v2 5/5 ARM: SAMSUNG: Cleanup resources by using macro

This patch cleans up the Samsung resources in plat-samsung/devs.c by using defined helpers at <linux/ioport.h>.

---
Changes since v1:
- Removed intruducing Samsung own macro
- Using defined macro at <linux/ioport.h>

 arch/arm/mach-s3c2410/include/mach/irqs.h |    4 +-
 arch/arm/mach-s3c2410/include/mach/map.h  |    1 +
 arch/arm/plat-samsung/devs.c              |  697 +++++------------------------
 3 files changed, 120 insertions(+), 582 deletions(-)
arch/arm/mach-s3c2410/include/mach/irqs.h +2 -2
index e5a68ea..e53b217 100644
@@ -191,9 +191,9 @@
 #define IRQ_LCD_SYSTEM		IRQ_S3C2443_LCD2
 
 #ifdef CONFIG_CPU_S3C2440
-#define IRQ_S3C244x_AC97 IRQ_S3C2440_AC97
+#define IRQ_S3C244X_AC97 IRQ_S3C2440_AC97
 #else
-#define IRQ_S3C244x_AC97 IRQ_S3C2443_AC97
+#define IRQ_S3C244X_AC97 IRQ_S3C2443_AC97
 #endif
 
 /* Our FIQs are routable from IRQ_EINT0 to IRQ_ADCPARENT */
arch/arm/mach-s3c2410/include/mach/map.h +1 -0
index 4cf495f..78ae807 100644
@@ -149,6 +149,7 @@
 #define S3C24XX_PA_RTC      S3C2410_PA_RTC
 #define S3C24XX_PA_ADC      S3C2410_PA_ADC
 #define S3C24XX_PA_SPI      S3C2410_PA_SPI
+#define S3C24XX_PA_SPI1		(S3C2410_PA_SPI + S3C2410_SPI1)
 #define S3C24XX_PA_SDI      S3C2410_PA_SDI
 #define S3C24XX_PA_NAND	    S3C2410_PA_NAND
 
arch/arm/plat-samsung/devs.c +117 -580

1,010 lines not on this page · raw message

Signature · 1 line
1.7.1