bus: Make remove callback return void
[sfrench/cifs-2.6.git] / drivers / hid / hid-core.c
index 7db332139f7d5be9a1955cf070dbf08a027f03b7..dbed2524fd47bfe18ff0e64f5762f5e5a707220f 100644 (file)
@@ -2302,7 +2302,7 @@ end:
        return ret;
 }
 
-static int hid_device_remove(struct device *dev)
+static void hid_device_remove(struct device *dev)
 {
        struct hid_device *hdev = to_hid_device(dev);
        struct hid_driver *hdrv;
@@ -2322,8 +2322,6 @@ static int hid_device_remove(struct device *dev)
 
        if (!hdev->io_started)
                up(&hdev->driver_input_lock);
-
-       return 0;
 }
 
 static ssize_t modalias_show(struct device *dev, struct device_attribute *a,