|
@@ -1162,7 +1162,8 @@ static ssize_t s3c24xx_serial_show_clksrc(struct device *dev,
|
|
|
if (IS_ERR(ourport->baudclk))
|
|
|
return -EINVAL;
|
|
|
|
|
|
- return snprintf(buf, PAGE_SIZE, "* %s\n", ourport->baudclk->name);
|
|
|
+ return snprintf(buf, PAGE_SIZE, "* %s\n",
|
|
|
+ ourport->baudclk->name ?: "(null)");
|
|
|
}
|
|
|
|
|
|
static DEVICE_ATTR(clock_source, S_IRUGO, s3c24xx_serial_show_clksrc, NULL);
|