Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364297
b: refs/heads/master
c: 17efd2b
h: refs/heads/master
i:
  364295: c99b720
v: v3
  • Loading branch information
Arnd Bergmann authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent b46704e commit 56ea20b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39f610e40eecc39e4c34e047fd6904ca6b525520
refs/heads/master: 17efd2b7867b5ee1076d3c9ae5a6c937907d9198
7 changes: 6 additions & 1 deletion trunk/drivers/tty/serial/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,7 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
return 0;
}

#ifdef CONFIG_SAMSUNG_CLOCK
static ssize_t s3c24xx_serial_show_clksrc(struct device *dev,
struct device_attribute *attr,
char *buf)
Expand All @@ -1198,7 +1199,7 @@ static ssize_t s3c24xx_serial_show_clksrc(struct device *dev,
}

static DEVICE_ATTR(clock_source, S_IRUGO, s3c24xx_serial_show_clksrc, NULL);

#endif

/* Device driver serial port probe */

Expand Down Expand Up @@ -1256,9 +1257,11 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
uart_add_one_port(&s3c24xx_uart_drv, &ourport->port);
platform_set_drvdata(pdev, &ourport->port);

#ifdef CONFIG_SAMSUNG_CLOCK
ret = device_create_file(&pdev->dev, &dev_attr_clock_source);
if (ret < 0)
dev_err(&pdev->dev, "failed to add clock source attr.\n");
#endif

ret = s3c24xx_serial_cpufreq_register(ourport);
if (ret < 0)
Expand All @@ -1276,7 +1279,9 @@ static int s3c24xx_serial_remove(struct platform_device *dev)

if (port) {
s3c24xx_serial_cpufreq_deregister(to_ourport(port));
#ifdef CONFIG_SAMSUNG_CLOCK
device_remove_file(&dev->dev, &dev_attr_clock_source);
#endif
uart_remove_one_port(&s3c24xx_uart_drv, port);
}

Expand Down

0 comments on commit 56ea20b

Please sign in to comment.