Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17efa644 authored by Ben Dooks's avatar Ben Dooks Committed by Russell King
Browse files

[ARM] 2976/1: S3C2410: add static to functions in serial driver



Patch from Ben Dooks

The s3c2410 serial driver is missing static declerations
on several functions that are not exported, and have no
need of being exported outside the driver

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0eea3c0b
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -1092,7 +1092,7 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,

static int probe_index = 0;

int s3c24xx_serial_probe(struct device *_dev,
static int s3c24xx_serial_probe(struct device *_dev,
				struct s3c24xx_uart_info *info)
{
	struct s3c24xx_uart_port *ourport;
@@ -1120,7 +1120,7 @@ int s3c24xx_serial_probe(struct device *_dev,
	return ret;
}

int s3c24xx_serial_remove(struct device *_dev)
static int s3c24xx_serial_remove(struct device *_dev)
{
	struct uart_port *port = s3c24xx_dev_to_port(_dev);

@@ -1134,7 +1134,8 @@ int s3c24xx_serial_remove(struct device *_dev)

#ifdef CONFIG_PM

int s3c24xx_serial_suspend(struct device *dev, pm_message_t state, u32 level)
static int s3c24xx_serial_suspend(struct device *dev, pm_message_t state,
				  u32 level)
{
	struct uart_port *port = s3c24xx_dev_to_port(dev);

@@ -1144,7 +1145,7 @@ int s3c24xx_serial_suspend(struct device *dev, pm_message_t state, u32 level)
	return 0;
}

int s3c24xx_serial_resume(struct device *dev, u32 level)
static int s3c24xx_serial_resume(struct device *dev, u32 level)
{
	struct uart_port *port = s3c24xx_dev_to_port(dev);
	struct s3c24xx_uart_port *ourport = to_ourport(port);
@@ -1165,7 +1166,7 @@ int s3c24xx_serial_resume(struct device *dev, u32 level)
#define s3c24xx_serial_resume  NULL
#endif

int s3c24xx_serial_init(struct device_driver *drv,
static int s3c24xx_serial_init(struct device_driver *drv,
			       struct s3c24xx_uart_info *info)
{
	dbg("s3c24xx_serial_init(%p,%p)\n", drv, info);