[ARM] 3006/1: S3C2410 - arch/arm/mach-s3c2410 sparse fixes
Patch from Ben Dooks Remove an unused variable from s3c2410.c and ensure that items not needed to be exported from s3c2440.c are declared static. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -125,9 +125,6 @@ static struct platform_device *uart_devices[] __initdata = {
|
|||||||
&s3c_uart2
|
&s3c_uart2
|
||||||
};
|
};
|
||||||
|
|
||||||
/* store our uart devices for the serial driver console */
|
|
||||||
struct platform_device *s3c2410_uart_devices[3];
|
|
||||||
|
|
||||||
static int s3c2410_uart_count = 0;
|
static int s3c2410_uart_count = 0;
|
||||||
|
|
||||||
/* uart registration process */
|
/* uart registration process */
|
||||||
|
@@ -151,7 +151,7 @@ void __init s3c2440_init_uarts(struct s3c2410_uartcfg *cfg, int no)
|
|||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
|
|
||||||
struct sleep_save s3c2440_sleep[] = {
|
static struct sleep_save s3c2440_sleep[] = {
|
||||||
SAVE_ITEM(S3C2440_DSC0),
|
SAVE_ITEM(S3C2440_DSC0),
|
||||||
SAVE_ITEM(S3C2440_DSC1),
|
SAVE_ITEM(S3C2440_DSC1),
|
||||||
SAVE_ITEM(S3C2440_GPJDAT),
|
SAVE_ITEM(S3C2440_GPJDAT),
|
||||||
@@ -260,7 +260,7 @@ void __init s3c2440_init_clocks(int xtal)
|
|||||||
* as a driver which may support both 2410 and 2440 may try and use it.
|
* as a driver which may support both 2410 and 2440 may try and use it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int __init s3c2440_core_init(void)
|
static int __init s3c2440_core_init(void)
|
||||||
{
|
{
|
||||||
return sysdev_class_register(&s3c2440_sysclass);
|
return sysdev_class_register(&s3c2440_sysclass);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user