diff options
author | Arnd Bergmann <[email protected]> | 2019-03-04 21:23:58 +0100 |
---|---|---|
committer | Kishon Vijay Abraham I <[email protected]> | 2019-04-17 12:06:02 +0530 |
commit | 208d3423ee463ab257908456f6bbca4024ab63f7 (patch) | |
tree | efc335f39d67976e0fef281d134a6718c729359a /drivers/usb/cdns3/cdns3-debug.h | |
parent | d41ce98a122c13ea77938af04ef06fb12ae0c69e (diff) |
phy: mapphone-mdm6600: add gpiolib dependency
gcc points out that when CONFIG_GPIOLIB is disabled,
gpiod_get_array_value_cansleep() returns 0 but fails to set its output:
drivers/phy/motorola/phy-mapphone-mdm6600.c: In function 'phy_mdm6600_status':
drivers/phy/motorola/phy-mapphone-mdm6600.c:220:24: error: 'values[0]' is used uninitialized in this function [-Werror=uninitialized]
This could be fixed more generally in gpiolib by returning a failure
code, but for this specific case, the easier workaround is to add a
gpiolib dependency.
Fixes: 5d1ebbda0318 ("phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions