summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-04-21 16:24:33 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:29 +0900
commitf44f7c7fa849eba1ac6624dd2854c2317786308c (patch)
tree5a540b316e3fdbd7155ac6efab8c7409ed92e863 /drivers
parent07a6899fe7d43d4bcba7f762a26c81204c6c004b (diff)
downloadlinux-3.10-f44f7c7fa849eba1ac6624dd2854c2317786308c.tar.gz
linux-3.10-f44f7c7fa849eba1ac6624dd2854c2317786308c.tar.bz2
linux-3.10-f44f7c7fa849eba1ac6624dd2854c2317786308c.zip
misc: modem_if: initialize gpio_link_enable if invalid gpio
This patch fixes invalid gpio value caused by 47c53475 commit. The gpio_link_enable should be initialized to 0 if not provided Change-Id: Ie22a2a60a2b713a3be9f141a5dc5c71d4adeb667 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/modem_if/sipc4_modem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/modem_if/sipc4_modem.c b/drivers/misc/modem_if/sipc4_modem.c
index 89892fa2481..e1169c798cb 100644
--- a/drivers/misc/modem_if/sipc4_modem.c
+++ b/drivers/misc/modem_if/sipc4_modem.c
@@ -419,7 +419,8 @@ static struct modem_data *modem_parse_dt(struct platform_device *pdev, struct de
if (gpio_is_valid(mc->link_pm_data->gpio_link_enable))
devm_gpio_request(&pdev->dev, mc->link_pm_data->gpio_link_enable,
"gpio_link_enable");
-
+ else
+ mc->link_pm_data->gpio_link_enable = 0;
devm_gpio_request(&pdev->dev, mc->gpio_reset_req_n, "gpio_reset_req_n");
devm_gpio_request(&pdev->dev, mc->gpio_cp_on, "gpio_cp_on");