From 1a2ebe752d6d01bfd4e4e21f8867e70455c2b712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Gourv=C3=A9nec?= Date: Thu, 12 Jul 2018 18:47:22 +0200 Subject: [PATCH] fix: usb: ehci-orion: don't compile PM functions without CONFIG_PM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Laurent Gourvénec This commit fixes the compilation when CONFIG_PM isn't enabled. --- drivers/usb/host/ehci-orion.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index 3ffaf19dee099..cd01fad054777 100644 --- a/drivers/usb/host/ehci-orion.c +++ b/drivers/usb/host/ehci-orion.c @@ -362,6 +362,8 @@ static int ehci_orion_drv_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_PM + static int ehci_orion_drv_suspend(struct platform_device *pdev, pm_message_t state) { @@ -455,6 +457,8 @@ static int ehci_orion_drv_resume(struct platform_device *pdev) return 0; } +#endif + static void ehci_orion_drv_shutdown(struct platform_device *pdev) { struct usb_hcd *hcd = platform_get_drvdata(pdev);