|
@@ -775,9 +775,6 @@ static int tegra_ehci_remove(struct platform_device *pdev)
|
|
struct tegra_ehci_hcd *tegra = platform_get_drvdata(pdev);
|
|
struct tegra_ehci_hcd *tegra = platform_get_drvdata(pdev);
|
|
struct usb_hcd *hcd = ehci_to_hcd(tegra->ehci);
|
|
struct usb_hcd *hcd = ehci_to_hcd(tegra->ehci);
|
|
|
|
|
|
- if (tegra == NULL || hcd == NULL)
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
pm_runtime_get_sync(&pdev->dev);
|
|
pm_runtime_get_sync(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
pm_runtime_disable(&pdev->dev);
|
|
pm_runtime_put_noidle(&pdev->dev);
|
|
pm_runtime_put_noidle(&pdev->dev);
|