From 66c96a26124d88a77d739d4e1febc2900d3a9950 Mon Sep 17 00:00:00 2001 From: Hyunki Koo Date: Thu, 24 May 2018 20:45:50 +0900 Subject: [PATCH] [COMMON] pinctrl: samsung: change return code This patch change return code to remove kmemleak unreferenced object 0xffffffc8f0f0c300 (size 128): comm "swapper/0", pid 1, jiffies 4294892530 (age 1408.240s) hex dump (first 32 bytes): 44 7c 41 08 80 ff ff ff 98 95 d1 f0 c8 ff ff ff D|A............. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x3c/0x68 [] __kmalloc+0x20c/0x41c [] request_threaded_irq+0xc4/0x154 [] devm_request_threaded_irq+0x84/0xd0 [] exynos_eint_gpio_init+0x50/0x1d4 [] samsung_pinctrl_probe+0x8cc/0x970 [] platform_drv_probe+0x58/0xac [] driver_probe_device+0x274/0x2b4 [] __device_attach_driver+0x98/0xb0 [] bus_for_each_drv+0x74/0xbc [] __device_attach+0xa4/0x128 [] device_initial_probe+0x10/0x18 [] bus_probe_device+0x30/0x8c [] device_add+0x4b4/0x544 [] of_device_add+0x34/0x44 [] of_platform_device_create_pdata+0x7c/0xb0 Change-Id: Ib4544b7f998812fd4a17e17796d65178e783d2e6 Signed-off-by: Hyunki Koo --- drivers/pinctrl/samsung/pinctrl-exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c b/drivers/pinctrl/samsung/pinctrl-exynos.c index 16766c68fb39..a684ca2c7d63 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c @@ -331,7 +331,7 @@ int exynos_eint_gpio_init(struct samsung_pinctrl_drv_data *d) 0, dev_name(dev), d); if (ret) { dev_err(dev, "irq request failed\n"); - return -ENXIO; + return ret; } bank = d->pin_banks; -- 2.20.1