Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92787
b: refs/heads/master
c: 49844c2
h: refs/heads/master
i:
  92785: 1d69b22
  92783: 13dc86b
v: v3
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent a46229c commit 7ee26f1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 18ecbb4771eb0ecf297e996966b3c42f69cd6c02
refs/heads/master: 49844c291a02a8630215f779fa44b3198d0a4f5b
49 changes: 29 additions & 20 deletions trunk/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,9 @@ static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id)

ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp);
if (ret) {
printk(KERN_WARNING "%s: sysfs_create_group error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"sysfs_create_group error: %d",
ret);
return;
}
cip->created_ok = !0;
Expand Down Expand Up @@ -640,15 +641,17 @@ static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp)
sfp->debugifc = dip;
ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
dip->debugcmd_created_ok = !0;
}
ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
dip->debuginfo_created_ok = !0;
}
Expand Down Expand Up @@ -851,8 +854,8 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
class_dev->driver_data = sfp;
ret = device_register(class_dev);
if (ret) {
printk(KERN_ERR "%s: device_register failed\n",
__FUNCTION__);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_register failed");
kfree(class_dev);
return;
}
Expand All @@ -864,8 +867,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev,
&sfp->attr_v4l_minor_number);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
sfp->v4l_minor_number_created_ok = !0;
}
Expand All @@ -877,8 +881,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev,
&sfp->attr_v4l_radio_minor_number);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
sfp->v4l_radio_minor_number_created_ok = !0;
}
Expand All @@ -889,8 +894,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
sfp->attr_unit_number.store = NULL;
ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
sfp->unit_number_created_ok = !0;
}
Expand All @@ -902,8 +908,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev,
&sfp->attr_bus_info);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
sfp->bus_info_created_ok = !0;
}
Expand All @@ -915,8 +922,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev,
&sfp->attr_hdw_name);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
sfp->hdw_name_created_ok = !0;
}
Expand All @@ -928,8 +936,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev,
&sfp->attr_hdw_desc);
if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n",
__FUNCTION__, ret);
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"device_create_file error: %d",
ret);
} else {
sfp->hdw_desc_created_ok = !0;
}
Expand Down

0 comments on commit 7ee26f1

Please sign in to comment.