diff options
Diffstat (limited to 'arch/sh/boards/board-sh7785lcr.c')
| -rw-r--r-- | arch/sh/boards/board-sh7785lcr.c | 20 | 
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index fe7e686c94a..2c4771ee84c 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c @@ -20,6 +20,7 @@  #include <linux/i2c-pca-platform.h>  #include <linux/i2c-algo-pca.h>  #include <linux/usb/r8a66597.h> +#include <linux/sh_intc.h>  #include <linux/irq.h>  #include <linux/io.h>  #include <linux/clk.h> @@ -28,6 +29,7 @@  #include <cpu/sh7785.h>  #include <asm/heartbeat.h>  #include <asm/clock.h> +#include <asm/bl_bit.h>  /*   * NOTE: This board has 2 physical memory maps. @@ -104,8 +106,8 @@ static struct resource r8a66597_usb_host_resources[] = {  		.flags	= IORESOURCE_MEM,  	},  	[1] = { -		.start	= 2, -		.end	= 2, +		.start	= evt2irq(0x240), +		.end	= evt2irq(0x240),  		.flags	= IORESOURCE_IRQ | IRQF_TRIGGER_LOW,  	},  }; @@ -134,7 +136,7 @@ static struct resource sm501_resources[] = {  		.flags	= IORESOURCE_MEM,  	},  	[2]	= { -		.start	= 10, +		.start	= evt2irq(0x340),  		.flags	= IORESOURCE_IRQ,  	},  }; @@ -222,8 +224,8 @@ static struct resource i2c_proto_resources[] = {  		.flags	= IORESOURCE_MEM | IORESOURCE_MEM_8BIT,  	},  	[1] = { -		.start	= 12, -		.end	= 12, +		.start	= evt2irq(0x380), +		.end	= evt2irq(0x380),  		.flags	= IORESOURCE_IRQ,  	},  }; @@ -235,8 +237,8 @@ static struct resource i2c_resources[] = {  		.flags	= IORESOURCE_MEM | IORESOURCE_MEM_8BIT,  	},  	[1] = { -		.start	= 12, -		.end	= 12, +		.start	= evt2irq(0x380), +		.end	= evt2irq(0x380),  		.flags	= IORESOURCE_IRQ,  	},  }; @@ -284,7 +286,7 @@ static int __init sh7785lcr_devices_setup(void)  	return platform_add_devices(sh7785lcr_devices,  				    ARRAY_SIZE(sh7785lcr_devices));  } -__initcall(sh7785lcr_devices_setup); +device_initcall(sh7785lcr_devices_setup);  /* Initialize IRQ setting */  void __init init_sh7785lcr_IRQ(void) @@ -299,7 +301,7 @@ static int sh7785lcr_clk_init(void)  	int ret;  	clk = clk_get(NULL, "extal"); -	if (!clk || IS_ERR(clk)) +	if (IS_ERR(clk))  		return PTR_ERR(clk);  	ret = clk_set_rate(clk, 33333333);  	clk_put(clk);  | 
