]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: 6929/1: SPEAr3xx: Append spear3** with global device structures
authorviresh kumar <viresh.kumar@st.com>
Fri, 20 May 2011 07:34:23 +0000 (08:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 20 May 2011 21:34:24 +0000 (22:34 +0100)
Reviewed-by: Stanley Miao <stanley.miao@windriver.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-spear3xx/include/mach/generic.h
arch/arm/mach-spear3xx/spear300.c
arch/arm/mach-spear3xx/spear300_evb.c
arch/arm/mach-spear3xx/spear310_evb.c
arch/arm/mach-spear3xx/spear320_evb.c
arch/arm/mach-spear3xx/spear3xx.c

index 8b04f085e8a3174ba37f998f44a5b9175fce355e..b8f31c3935f7c23eae979532ea337d5c9fddac50 100644 (file)
@@ -31,8 +31,8 @@
 #define SPEAR_GPT0_CHAN1_IRQ   SPEAR3XX_IRQ_CPU_GPT1_2
 
 /* Add spear3xx family device structure declarations here */
-extern struct amba_device gpio_device;
-extern struct amba_device uart_device;
+extern struct amba_device spear3xx_gpio_device;
+extern struct amba_device spear3xx_uart_device;
 extern struct sys_timer spear3xx_timer;
 
 /* Add spear3xx family function declarations here */
@@ -98,7 +98,7 @@ extern struct pmx_dev spear3xx_pmx_plgpio_45_46_49_50;
 /* spear300 declarations */
 #ifdef CONFIG_MACH_SPEAR300
 /* Add spear300 machine device structure declarations here */
-extern struct amba_device gpio1_device;
+extern struct amba_device spear300_gpio1_device;
 
 /* pad mux modes */
 extern struct pmx_mode spear300_nand_mode;
index 67349b50b18e06b49341b15580e8587d0d2a6632..a5e46b4ade206cbc4897bbe68336dd9d3524dada 100644 (file)
@@ -430,7 +430,7 @@ static struct pl061_platform_data gpio1_plat_data = {
        .irq_base       = SPEAR300_GPIO1_INT_BASE,
 };
 
-struct amba_device gpio1_device = {
+struct amba_device spear300_gpio1_device = {
        .dev = {
                .init_name = "gpio1",
                .platform_data = &gpio1_plat_data,
index 405ae098cc87cea5d792b69b8fe8eabfc09c75a8..69006f694220ff30de6b5f5cc68cfc7f6581af55 100644 (file)
@@ -34,11 +34,11 @@ static struct pmx_dev *pmx_devs[] = {
 
 static struct amba_device *amba_devs[] __initdata = {
        /* spear3xx specific devices */
-       &gpio_device,
-       &uart_device,
+       &spear3xx_gpio_device,
+       &spear3xx_uart_device,
 
        /* spear300 specific devices */
-       &gpio1_device,
+       &spear300_gpio1_device,
 };
 
 static struct platform_device *plat_devs[] __initdata = {
index 9d4aadbe24e9e21cbf8578d2ca320fa5cab4bff6..c8684ce1f9b304fe9efd5f72f3edef45da567490 100644 (file)
@@ -42,8 +42,8 @@ static struct pmx_dev *pmx_devs[] = {
 
 static struct amba_device *amba_devs[] __initdata = {
        /* spear3xx specific devices */
-       &gpio_device,
-       &uart_device,
+       &spear3xx_gpio_device,
+       &spear3xx_uart_device,
 
        /* spear310 specific devices */
 };
index 7e5f17f66b6265e8a6023270424312316bdb3db7..a12b353940d64df6bf66eee6b355c0eaa8ceb481 100644 (file)
@@ -39,8 +39,8 @@ static struct pmx_dev *pmx_devs[] = {
 
 static struct amba_device *amba_devs[] __initdata = {
        /* spear3xx specific devices */
-       &gpio_device,
-       &uart_device,
+       &spear3xx_gpio_device,
+       &spear3xx_uart_device,
 
        /* spear320 specific devices */
 };
index b4378a0562943511bf5afbde85f65da3cb3ec03f..10af45da86a0d06bb91717465d6fe40a10b1fd4b 100644 (file)
@@ -28,7 +28,7 @@ static struct pl061_platform_data gpio_plat_data = {
        .irq_base       = SPEAR3XX_GPIO_INT_BASE,
 };
 
-struct amba_device gpio_device = {
+struct amba_device spear3xx_gpio_device = {
        .dev = {
                .init_name = "gpio",
                .platform_data = &gpio_plat_data,
@@ -42,7 +42,7 @@ struct amba_device gpio_device = {
 };
 
 /* uart device registration */
-struct amba_device uart_device = {
+struct amba_device spear3xx_uart_device = {
        .dev = {
                .init_name = "uart",
        },