diff options
-rw-r--r-- | drivers/tty/serial/samsung.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index cefdd2d7c58c..d57f165d6be8 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c | |||
@@ -1162,7 +1162,8 @@ static ssize_t s3c24xx_serial_show_clksrc(struct device *dev, | |||
1162 | if (IS_ERR(ourport->baudclk)) | 1162 | if (IS_ERR(ourport->baudclk)) |
1163 | return -EINVAL; | 1163 | return -EINVAL; |
1164 | 1164 | ||
1165 | return snprintf(buf, PAGE_SIZE, "* %s\n", ourport->baudclk->name); | 1165 | return snprintf(buf, PAGE_SIZE, "* %s\n", |
1166 | ourport->baudclk->name ?: "(null)"); | ||
1166 | } | 1167 | } |
1167 | 1168 | ||
1168 | static DEVICE_ATTR(clock_source, S_IRUGO, s3c24xx_serial_show_clksrc, NULL); | 1169 | static DEVICE_ATTR(clock_source, S_IRUGO, s3c24xx_serial_show_clksrc, NULL); |