USB: core driver: Fix Coding Styles
authorcsanchez@neurowork.net <csanchez@neurowork.net>
Tue, 25 May 2010 15:38:22 +0000 (10:38 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:34 +0000 (14:35 -0700)
Fixed coding styles in the core usb driver.

Signed-off-by: Carlos Sánchez Acosta <csanchez@neurowork.net>
Signed-off-by: Alejandro Sánchez Acosta <asanchez@neurowork.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c

index a6bd53ace03565a6a1131168b240c56f4974ecb4..880f65baf58137ff7c683fe461bce10d175c2d05 100644 (file)
@@ -1742,9 +1742,8 @@ static int usb_runtime_suspend(struct device *dev)
                }
 
                /* Prevent the parent from suspending immediately after */
-               else if (udev->parent) {
+               else if (udev->parent)
                        udev->parent->last_busy = jiffies;
-               }
        }
 
        /* Runtime suspend for a USB interface doesn't mean anything. */
@@ -1786,7 +1785,7 @@ static int usb_runtime_idle(struct device *dev)
        return 0;
 }
 
-static struct dev_pm_ops usb_bus_pm_ops = {
+static const struct dev_pm_ops usb_bus_pm_ops = {
        .runtime_suspend =      usb_runtime_suspend,
        .runtime_resume =       usb_runtime_resume,
        .runtime_idle =         usb_runtime_idle,
@@ -1794,7 +1793,7 @@ static struct dev_pm_ops usb_bus_pm_ops = {
 
 #else
 
-#define usb_bus_pm_ops (*(struct dev_pm_ops *) NULL)
+#define usb_bus_pm_ops (*(const struct dev_pm_ops *) NULL)
 
 #endif /* CONFIG_USB_SUSPEND */