diff options
Diffstat (limited to 'drivers/hid/hid-pl.c')
-rw-r--r-- | drivers/hid/hid-pl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/hid/hid-pl.c b/drivers/hid/hid-pl.c index a1d1fb9da125..acd815586182 100644 --- a/drivers/hid/hid-pl.c +++ b/drivers/hid/hid-pl.c | |||
@@ -90,7 +90,7 @@ static int plff_init(struct hid_device *hid) | |||
90 | currently unknown. */ | 90 | currently unknown. */ |
91 | 91 | ||
92 | if (list_empty(report_list)) { | 92 | if (list_empty(report_list)) { |
93 | printk(KERN_ERR "hid-plff: no output reports found\n"); | 93 | dev_err(&hid->dev, "no output reports found\n"); |
94 | return -ENODEV; | 94 | return -ENODEV; |
95 | } | 95 | } |
96 | 96 | ||
@@ -99,18 +99,19 @@ static int plff_init(struct hid_device *hid) | |||
99 | report_ptr = report_ptr->next; | 99 | report_ptr = report_ptr->next; |
100 | 100 | ||
101 | if (report_ptr == report_list) { | 101 | if (report_ptr == report_list) { |
102 | printk(KERN_ERR "hid-plff: required output report is missing\n"); | 102 | dev_err(&hid->dev, "required output report is " |
103 | "missing\n"); | ||
103 | return -ENODEV; | 104 | return -ENODEV; |
104 | } | 105 | } |
105 | 106 | ||
106 | report = list_entry(report_ptr, struct hid_report, list); | 107 | report = list_entry(report_ptr, struct hid_report, list); |
107 | if (report->maxfield < 1) { | 108 | if (report->maxfield < 1) { |
108 | printk(KERN_ERR "hid-plff: no fields in the report\n"); | 109 | dev_err(&hid->dev, "no fields in the report\n"); |
109 | return -ENODEV; | 110 | return -ENODEV; |
110 | } | 111 | } |
111 | 112 | ||
112 | if (report->field[0]->report_count < 4) { | 113 | if (report->field[0]->report_count < 4) { |
113 | printk(KERN_ERR "hid-plff: not enough values in the field\n"); | 114 | dev_err(&hid->dev, "not enough values in the field\n"); |
114 | return -ENODEV; | 115 | return -ENODEV; |
115 | } | 116 | } |
116 | 117 | ||
@@ -136,7 +137,7 @@ static int plff_init(struct hid_device *hid) | |||
136 | usbhid_submit_report(hid, plff->report, USB_DIR_OUT); | 137 | usbhid_submit_report(hid, plff->report, USB_DIR_OUT); |
137 | } | 138 | } |
138 | 139 | ||
139 | printk(KERN_INFO "hid-plff: Force feedback for PantherLord/GreenAsia " | 140 | dev_info(&hid->dev, "Force feedback for PantherLord/GreenAsia " |
140 | "devices by Anssi Hannula <anssi.hannula@gmail.com>\n"); | 141 | "devices by Anssi Hannula <anssi.hannula@gmail.com>\n"); |
141 | 142 | ||
142 | return 0; | 143 | return 0; |