Commit 49844c29 authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB (7715): pvrusb2: Clean out all use of __FUNCTION__

Apparently the kernel developers no longer consider it proper
etiquette to use __FUNCTION__; everyone must instead use __func__
(even though it breaks with older compilers).  And worse still, actual
effort is being expended to sweep this change throughout the kernel
source tree.  Don't these people have better things to do?  So...
Completely clean out all use of __FUNCTION__ from the pvrusb2 driver
(it was just in the sysfs interface).  I'm not going to use __func__
either.  So there.
Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 18ecbb47
...@@ -608,8 +608,9 @@ static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) ...@@ -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); ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp);
if (ret) { if (ret) {
printk(KERN_WARNING "%s: sysfs_create_group error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "sysfs_create_group error: %d",
ret);
return; return;
} }
cip->created_ok = !0; cip->created_ok = !0;
...@@ -640,15 +641,17 @@ static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp) ...@@ -640,15 +641,17 @@ static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp)
sfp->debugifc = dip; sfp->debugifc = dip;
ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd); ret = device_create_file(sfp->class_dev,&dip->attr_debugcmd);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
dip->debugcmd_created_ok = !0; dip->debugcmd_created_ok = !0;
} }
ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo); ret = device_create_file(sfp->class_dev,&dip->attr_debuginfo);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
dip->debuginfo_created_ok = !0; dip->debuginfo_created_ok = !0;
} }
...@@ -851,8 +854,8 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -851,8 +854,8 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
class_dev->driver_data = sfp; class_dev->driver_data = sfp;
ret = device_register(class_dev); ret = device_register(class_dev);
if (ret) { if (ret) {
printk(KERN_ERR "%s: device_register failed\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__); "device_register failed");
kfree(class_dev); kfree(class_dev);
return; return;
} }
...@@ -864,8 +867,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -864,8 +867,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev, ret = device_create_file(sfp->class_dev,
&sfp->attr_v4l_minor_number); &sfp->attr_v4l_minor_number);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
sfp->v4l_minor_number_created_ok = !0; sfp->v4l_minor_number_created_ok = !0;
} }
...@@ -877,8 +881,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -877,8 +881,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev, ret = device_create_file(sfp->class_dev,
&sfp->attr_v4l_radio_minor_number); &sfp->attr_v4l_radio_minor_number);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
sfp->v4l_radio_minor_number_created_ok = !0; sfp->v4l_radio_minor_number_created_ok = !0;
} }
...@@ -889,8 +894,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -889,8 +894,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
sfp->attr_unit_number.store = NULL; sfp->attr_unit_number.store = NULL;
ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number); ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
sfp->unit_number_created_ok = !0; sfp->unit_number_created_ok = !0;
} }
...@@ -902,8 +908,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -902,8 +908,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev, ret = device_create_file(sfp->class_dev,
&sfp->attr_bus_info); &sfp->attr_bus_info);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
sfp->bus_info_created_ok = !0; sfp->bus_info_created_ok = !0;
} }
...@@ -915,8 +922,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -915,8 +922,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev, ret = device_create_file(sfp->class_dev,
&sfp->attr_hdw_name); &sfp->attr_hdw_name);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
sfp->hdw_name_created_ok = !0; sfp->hdw_name_created_ok = !0;
} }
...@@ -928,8 +936,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp, ...@@ -928,8 +936,9 @@ static void class_dev_create(struct pvr2_sysfs *sfp,
ret = device_create_file(sfp->class_dev, ret = device_create_file(sfp->class_dev,
&sfp->attr_hdw_desc); &sfp->attr_hdw_desc);
if (ret < 0) { if (ret < 0) {
printk(KERN_WARNING "%s: device_create_file error: %d\n", pvr2_trace(PVR2_TRACE_ERROR_LEGS,
__FUNCTION__, ret); "device_create_file error: %d",
ret);
} else { } else {
sfp->hdw_desc_created_ok = !0; sfp->hdw_desc_created_ok = !0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment