diff mbox

[1/2] gpiolib: prevent fault 'Unable to handle kernel paging request at virtual address'

Message ID 1449219985-67261-2-git-send-email-preid@electromag.com.au
State New
Headers show

Commit Message

Phil Reid Dec. 4, 2015, 9:06 a.m. UTC
gpiod_request when gpio returns -EBUSY results in fault.
Changing to pr_warn fixes the problem.

Signed-off-by: Phil Reid <preid@electromag.com.au>
---
 drivers/gpio/gpiolib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index a18f00f..0ef01b8 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -961,7 +961,7 @@  int gpiod_request(struct gpio_desc *desc, const char *label)
 
 done:
 	if (status)
-		gpiod_dbg(desc, "%s: status %d\n", __func__, status);
+		pr_warn("%s: status %d\n", __func__, status);
 
 	return status;
 }