HID: roccat: fix wrong hid_err usage on struct usb_device
authorStefan Achatz <erazor_de@users.sourceforge.net>
Sun, 20 May 2012 20:45:08 +0000 (22:45 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 28 Jun 2012 08:34:01 +0000 (10:34 +0200)
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-roccat-kone.c

index 40090d6..9ce2d0b 100644 (file)
@@ -138,7 +138,7 @@ static int kone_check_write(struct usb_device *usb_dev)
                return 0;
 
        /* unknown answer */
-       hid_err(usb_dev, "got retval %d when checking write\n", data);
+       dev_err(&usb_dev->dev, "got retval %d when checking write\n", data);
        return -EIO;
 }
 
@@ -503,7 +503,7 @@ static ssize_t kone_sysfs_set_tcu(struct device *dev,
 
                retval = kone_set_settings(usb_dev, &kone->settings);
                if (retval) {
-                       hid_err(usb_dev, "couldn't set tcu state\n");
+                       dev_err(&usb_dev->dev, "couldn't set tcu state\n");
                        /*
                         * try to reread valid settings into buffer overwriting
                         * first error code
@@ -519,7 +519,7 @@ static ssize_t kone_sysfs_set_tcu(struct device *dev,
 
        retval = size;
 exit_no_settings:
-       hid_err(usb_dev, "couldn't read settings\n");
+       dev_err(&usb_dev->dev, "couldn't read settings\n");
 exit_unlock:
        mutex_unlock(&kone->kone_lock);
        return retval;