usb: xhci: tegra: Fix error in non-SMP build
Edgardo Handal [Mon, 14 Oct 2013 17:22:38 +0000 (12:22 -0500)]
Bug 1386515

Change-Id: Ic297f5a4fe08888b71062f284ad75b62e7393ee8
Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-on: http://git-master/r/299015
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/usb/host/xhci-tegra.c

index bb8d761..16864a7 100644 (file)
@@ -424,14 +424,12 @@ static inline struct tegra_xhci_hcd *hcd_to_tegra_xhci(struct usb_hcd *hcd)
        return (struct tegra_xhci_hcd *) dev_get_drvdata(hcd->self.controller);
 }
 
-#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_SMP)
 static inline void must_have_sync_lock(struct tegra_xhci_hcd *tegra)
 {
+#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_SMP)
        WARN_ON(tegra->sync_lock.owner != current);
-}
-#else
-static inline void must_have_sync_lock(struct tegra_xhci_hcd *tegra)
 #endif
+}
 
 #define for_each_enabled_hsic_pad(_pad, _tegra_xhci_hcd)               \
        for (_pad = find_next_enabled_hsic_pad(_tegra_xhci_hcd, 0);     \