linux/drivers/usb/phy
Josh Cartwright e7d613d1db usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP
Both the PM_RUNTIME and PM_SLEEP callbacks call into the common
msm_otg_{suspend,resume} routines, however these routines are only being
built when CONFIG_PM_SLEEP.  In addition, msm_otg_{suspend,resume} also
depends on msm_hsusb_config_vddcx(), which is only built when
CONFIG_PM_SLEEP.

Fix the CONFIG_PM_RUNTIME, !CONFIG_PM_SLEEP case by changing the
preprocessor conditional, and moving msm_hsusb_config_vddcx().

While we're here, eliminate the CONFIG_PM conditional for setting
up the dev_pm_ops.

This address the following errors Russell King has hit doing randconfig
builds:

drivers/usb/phy/phy-msm-usb.c: In function 'msm_otg_runtime_suspend':
drivers/usb/phy/phy-msm-usb.c:1691:2: error: implicit declaration of function 'msm_otg_suspend'
drivers/usb/phy/phy-msm-usb.c: In function 'msm_otg_runtime_resume':
drivers/usb/phy/phy-msm-usb.c:1699:2: error: implicit declaration of function 'msm_otg_resume'

Cc: Ivan T. Ivanov <iivanov@mm-sol.com>
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-02-20 09:17:24 -06:00
..
am35x-phy-control.h usb: phy: Add AM335x PHY driver 2013-08-09 17:34:15 +03:00
Kconfig Linux 3.13-rc5 2013-12-23 11:22:46 -06:00
Makefile usb: phy: add Keystone usb phy driver 2013-12-12 13:43:34 -06:00
of.c
phy-ab8500-usb.c usb: phy: initialize the notifier when add a new phy 2013-12-12 13:43:34 -06:00
phy-am335x-control.c usb: phy: am335x-control: include appropriate header file in phy-am335x-control.c 2013-12-19 09:27:42 -06:00
phy-am335x.c usb: phy: am335x: fix randconfig errors 2013-12-20 15:04:09 -06:00
phy-fsl-usb.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00
phy-fsl-usb.h usb: phy: move OTG FSM header 2013-11-26 10:58:18 -06:00
phy-fsm-usb.c usb: phy-fsm: Staticize local symbols 2013-12-23 10:13:33 -06:00
phy-generic.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-generic.h usb: phy: generic: fix how we find out about our resources 2013-11-25 10:25:57 -06:00
phy-gpio-vbus-usb.c usb: phy: initialize the notifier when add a new phy 2013-12-12 13:43:34 -06:00
phy-isp1301-omap.c usb: phy: isp1301-omap: fix smatch warnings 2013-12-23 10:14:40 -06:00
phy-isp1301.c
phy-keystone.c usb: phy: keystone: remove redundant return value check of platform_get_resource() 2013-12-26 10:19:01 -06:00
phy-msm-usb.c usb: phy: msm: fix compilation errors when !CONFIG_PM_SLEEP 2014-02-20 09:17:24 -06:00
phy-mv-u3d-usb.c usb: phy: mv-u3d: Staticize mv_u3d_phy_shutdown() 2013-08-09 16:34:21 +03:00
phy-mv-u3d-usb.h
phy-mv-usb.c usb: delete non-required instances of include <linux/init.h> 2014-01-08 15:01:39 -08:00
phy-mv-usb.h
phy-mxs-usb.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-omap-control.c usb: phy: omap: Add omap-control Support for AM437x 2013-12-19 09:27:42 -06:00
phy-omap-otg.c usb: omap1: OTG controller driver 2013-12-06 14:40:26 -06:00
phy-omap-usb3.c usb: phy: omap-usb3: Don't use omap_get_control_dev() 2013-10-03 15:47:31 -07:00
phy-rcar-gen2-usb.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-rcar-usb.c usb: phy: use dev_get_platdata() 2013-07-30 11:18:53 +03:00
phy-samsung-usb2.c USB: phy: samsung: Support multiple PHYs of same type 2013-10-29 16:46:48 -07:00
phy-samsung-usb3.c USB: phy: samsung: Support multiple PHYs of same type 2013-10-29 16:46:48 -07:00
phy-samsung-usb.c
phy-samsung-usb.h
phy-tahvo.c usb: phy: tahvo: fix smatch warnings 2013-12-23 10:14:33 -06:00
phy-tegra-usb.c usb: phy-tegra-usb.c: wrong pointer check for remap UTMI 2013-12-06 14:32:15 -06:00
phy-twl6030-usb.c Linux 3.13-rc5 2013-12-23 11:22:46 -06:00
phy-ulpi-viewport.c usb: Remove unnecessary semicolons 2013-10-11 16:26:46 -07:00
phy-ulpi.c
phy.c usb: phy: move some error messages to debug 2014-02-04 12:59:14 -08:00