From f44f7c7fa849eba1ac6624dd2854c2317786308c Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Mon, 21 Apr 2014 16:24:33 +0900 Subject: [PATCH] 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 --- drivers/misc/modem_if/sipc4_modem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/modem_if/sipc4_modem.c b/drivers/misc/modem_if/sipc4_modem.c index 89892fa..e1169c7 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"); -- 2.7.4