xhci: tegra: fix a compilation warning in fw_log_wait_empty_timeout
JC Kuo [Thu, 25 Jul 2013 04:21:12 +0000 (12:21 +0800)]
Input parameter to time_is_after_jiffies() has to be in "unsigned long"
type.

bug 1320242

Change-Id: I67f7a2cf5806a0ae7561cd02d77ebd723b85da1f
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/253185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/usb/host/xhci-tegra.c

index 6eaae57..7dc31ef 100644 (file)
@@ -517,7 +517,7 @@ static inline bool fw_log_available(struct tegra_xhci_hcd *tegra)
 static inline bool fw_log_wait_empty_timeout(struct tegra_xhci_hcd *tegra,
                unsigned timeout)
 {
-       u32 target = jiffies + msecs_to_jiffies(timeout);
+       unsigned long target = jiffies + msecs_to_jiffies(timeout);
        bool ret;
 
        mutex_lock(&tegra->log.mutex);