aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/musb_debugfs.c')
-rw-r--r--drivers/usb/musb/musb_debugfs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
index 13d9af9bf920..40a37c91cc10 100644
--- a/drivers/usb/musb/musb_debugfs.c
+++ b/drivers/usb/musb/musb_debugfs.c
@@ -235,29 +235,29 @@ static const struct file_operations musb_test_mode_fops = {
235 .release = single_release, 235 .release = single_release,
236}; 236};
237 237
238int __init musb_init_debugfs(struct musb *musb) 238int __devinit musb_init_debugfs(struct musb *musb)
239{ 239{
240 struct dentry *root; 240 struct dentry *root;
241 struct dentry *file; 241 struct dentry *file;
242 int ret; 242 int ret;
243 243
244 root = debugfs_create_dir("musb", NULL); 244 root = debugfs_create_dir("musb", NULL);
245 if (IS_ERR(root)) { 245 if (!root) {
246 ret = PTR_ERR(root); 246 ret = -ENOMEM;
247 goto err0; 247 goto err0;
248 } 248 }
249 249
250 file = debugfs_create_file("regdump", S_IRUGO, root, musb, 250 file = debugfs_create_file("regdump", S_IRUGO, root, musb,
251 &musb_regdump_fops); 251 &musb_regdump_fops);
252 if (IS_ERR(file)) { 252 if (!file) {
253 ret = PTR_ERR(file); 253 ret = -ENOMEM;
254 goto err1; 254 goto err1;
255 } 255 }
256 256
257 file = debugfs_create_file("testmode", S_IRUGO | S_IWUSR, 257 file = debugfs_create_file("testmode", S_IRUGO | S_IWUSR,
258 root, musb, &musb_test_mode_fops); 258 root, musb, &musb_test_mode_fops);
259 if (IS_ERR(file)) { 259 if (!file) {
260 ret = PTR_ERR(file); 260 ret = -ENOMEM;
261 goto err1; 261 goto err1;
262 } 262 }
263 263