summaryrefslogtreecommitdiff
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-04-21 16:24:33 +0900
commit0dccffc0683ac0d91e3ce40f5bae4a88ecfc586d (patch)
tree6940851af3f11020337f7e078911d0520e07c43f
parent47c53475bf07dc2abb09a816b95f12b0be996bed (diff)
downloadlinux-3.10-0dccffc0683ac0d91e3ce40f5bae4a88ecfc586d.tar.gz
linux-3.10-0dccffc0683ac0d91e3ce40f5bae4a88ecfc586d.tar.bz2
linux-3.10-0dccffc0683ac0d91e3ce40f5bae4a88ecfc586d.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>
-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");