From ab96dd56b3e6bb1fb278cf42e81e7191cfb501b7 Mon Sep 17 00:00:00 2001 From: Preetham Chandru Date: Mon, 4 Jun 2012 13:59:31 +0530 Subject: misc: rfkill: rephrase gpio warning messages The current BCM4329 rfkill driver assumes usage of 2 GPIOs known as RST and SHUTDOWN and the driver makes a particular GPIO mandatory. Some of the platforms does not define both GPIOs, instead a single either RST/SHUTDOWN GPIO is used to setup the chip. Hence print a less alarming message if gpio is not found. Bug 975333 Signed-off-by: Preetham Chandru r Change-Id: I229844d9d5dfc94ea00bb086d1091ac41bf97b99 Reviewed-on: http://git-master/r/106158 Tested-by: Preetham Chandru Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Kiran Adduri Reviewed-by: Rakesh Goyal Reviewed-by: Bharat Nihalani GVS: Gerrit_Virtual_Submit --- drivers/misc/bcm4329_rfkill.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/misc/bcm4329_rfkill.c b/drivers/misc/bcm4329_rfkill.c index cf56768e2baa..9dc33fd51e59 100644 --- a/drivers/misc/bcm4329_rfkill.c +++ b/drivers/misc/bcm4329_rfkill.c @@ -111,7 +111,9 @@ static int bcm4329_rfkill_probe(struct platform_device *pdev) ret = gpio_request(bcm4329_rfkill->gpio_reset, "bcm4329_nreset_gpio"); } else { - pr_warn("%s : can't find reset gpio.\n", __func__); + pr_warn("%s : can't find reset gpio. " + "reset gpio may not be defined for " + "this platform \n", __func__); bcm4329_rfkill->gpio_reset = 0; } @@ -123,7 +125,9 @@ static int bcm4329_rfkill_probe(struct platform_device *pdev) ret = gpio_request(bcm4329_rfkill->gpio_shutdown, "bcm4329_nshutdown_gpio"); } else { - pr_warn("%s : can't find shutdown gpio.\n", __func__); + pr_warn("%s : can't find shutdown gpio " + "shutdown gpio may not be defined for " + "this platform \n", __func__); bcm4329_rfkill->gpio_shutdown = 0; } -- cgit v1.2.3