* [PATCH] usb: storage: fix build warnings !CONFIG_PM
@ 2014-10-01 23:10 Luis Henriques
0 siblings, 0 replies; only message in thread
From: Luis Henriques @ 2014-10-01 23:10 UTC (permalink / raw)
To: Matthew Dharm, Greg Kroah-Hartman; +Cc: linux-usb, linux-kernel
Functions fw5895_init() and config_autodelink_before_power_down() are used
only when CONFIG_PM is defined.
drivers/usb/storage/realtek_cr.c:699:13: warning: 'fw5895_init' defined but not used [-Wunused-function]
drivers/usb/storage/realtek_cr.c:629:12: warning: 'config_autodelink_before_power_down' defined but not used [-Wunused-function]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
drivers/usb/storage/realtek_cr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c
index 281be56d5648..d3ba242b98e1 100644
--- a/drivers/usb/storage/realtek_cr.c
+++ b/drivers/usb/storage/realtek_cr.c
@@ -626,6 +626,7 @@ static int config_autodelink_after_power_on(struct us_data *us)
return 0;
}
+#ifdef CONFIG_PM
static int config_autodelink_before_power_down(struct us_data *us)
{
struct rts51x_chip *chip = (struct rts51x_chip *)(us->extra);
@@ -716,6 +717,7 @@ static void fw5895_init(struct us_data *us)
}
}
}
+#endif
#ifdef CONFIG_REALTEK_AUTOPM
static void fw5895_set_mmc_wp(struct us_data *us)
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-01 23:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-01 23:10 [PATCH] usb: storage: fix build warnings !CONFIG_PM Luis Henriques
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox