Loading drivers/usb/dwc3/debugfs.c +10 −10 Original line number Original line Diff line number Diff line Loading @@ -659,8 +659,8 @@ int __devinit dwc3_debugfs_init(struct dwc3 *dwc) int ret; int ret; root = debugfs_create_dir(dev_name(dwc->dev), NULL); root = debugfs_create_dir(dev_name(dwc->dev), NULL); if (IS_ERR(root)) { if (!root) { ret = PTR_ERR(root); ret = -ENOMEM; goto err0; goto err0; } } Loading @@ -668,29 +668,29 @@ int __devinit dwc3_debugfs_init(struct dwc3 *dwc) file = debugfs_create_file("regdump", S_IRUGO, root, dwc, file = debugfs_create_file("regdump", S_IRUGO, root, dwc, &dwc3_regdump_fops); &dwc3_regdump_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } file = debugfs_create_file("mode", S_IRUGO | S_IWUSR, root, file = debugfs_create_file("mode", S_IRUGO | S_IWUSR, root, dwc, &dwc3_mode_fops); dwc, &dwc3_mode_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } file = debugfs_create_file("testmode", S_IRUGO | S_IWUSR, root, file = debugfs_create_file("testmode", S_IRUGO | S_IWUSR, root, dwc, &dwc3_testmode_fops); dwc, &dwc3_testmode_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } file = debugfs_create_file("link_state", S_IRUGO | S_IWUSR, root, file = debugfs_create_file("link_state", S_IRUGO | S_IWUSR, root, dwc, &dwc3_link_state_fops); dwc, &dwc3_link_state_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } Loading Loading
drivers/usb/dwc3/debugfs.c +10 −10 Original line number Original line Diff line number Diff line Loading @@ -659,8 +659,8 @@ int __devinit dwc3_debugfs_init(struct dwc3 *dwc) int ret; int ret; root = debugfs_create_dir(dev_name(dwc->dev), NULL); root = debugfs_create_dir(dev_name(dwc->dev), NULL); if (IS_ERR(root)) { if (!root) { ret = PTR_ERR(root); ret = -ENOMEM; goto err0; goto err0; } } Loading @@ -668,29 +668,29 @@ int __devinit dwc3_debugfs_init(struct dwc3 *dwc) file = debugfs_create_file("regdump", S_IRUGO, root, dwc, file = debugfs_create_file("regdump", S_IRUGO, root, dwc, &dwc3_regdump_fops); &dwc3_regdump_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } file = debugfs_create_file("mode", S_IRUGO | S_IWUSR, root, file = debugfs_create_file("mode", S_IRUGO | S_IWUSR, root, dwc, &dwc3_mode_fops); dwc, &dwc3_mode_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } file = debugfs_create_file("testmode", S_IRUGO | S_IWUSR, root, file = debugfs_create_file("testmode", S_IRUGO | S_IWUSR, root, dwc, &dwc3_testmode_fops); dwc, &dwc3_testmode_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } file = debugfs_create_file("link_state", S_IRUGO | S_IWUSR, root, file = debugfs_create_file("link_state", S_IRUGO | S_IWUSR, root, dwc, &dwc3_link_state_fops); dwc, &dwc3_link_state_fops); if (IS_ERR(file)) { if (!file) { ret = PTR_ERR(file); ret = -ENOMEM; goto err1; goto err1; } } Loading