|
@@ -972,7 +972,10 @@ static int __init s3c24xxfb_probe(struct platform_device *pdev,
|
|
}
|
|
}
|
|
|
|
|
|
/* create device files */
|
|
/* create device files */
|
|
- device_create_file(&pdev->dev, &dev_attr_debug);
|
|
|
|
|
|
+ ret = device_create_file(&pdev->dev, &dev_attr_debug);
|
|
|
|
+ if (ret) {
|
|
|
|
+ printk(KERN_ERR "failed to add debug attribute\n");
|
|
|
|
+ }
|
|
|
|
|
|
printk(KERN_INFO "fb%d: %s frame buffer device\n",
|
|
printk(KERN_INFO "fb%d: %s frame buffer device\n",
|
|
fbinfo->node, fbinfo->fix.id);
|
|
fbinfo->node, fbinfo->fix.id);
|