[COMMON] pinctrl: samsung: change return code
authorHyunki Koo <hyunki00.koo@samsung.com>
Thu, 24 May 2018 11:45:50 +0000 (20:45 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:23 +0000 (20:22 +0300)
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:
    [<ffffff8008ad4b9c>] kmemleak_alloc+0x3c/0x68
    [<ffffff8008223190>] __kmalloc+0x20c/0x41c
    [<ffffff8008125500>] request_threaded_irq+0xc4/0x154
    [<ffffff8008128800>] devm_request_threaded_irq+0x84/0xd0
    [<ffffff8008417ac0>] exynos_eint_gpio_init+0x50/0x1d4
    [<ffffff80084168c8>] samsung_pinctrl_probe+0x8cc/0x970
    [<ffffff800853a93c>] platform_drv_probe+0x58/0xac
    [<ffffff800853830c>] driver_probe_device+0x274/0x2b4
    [<ffffff8008538ac4>] __device_attach_driver+0x98/0xb0
    [<ffffff8008536a38>] bus_for_each_drv+0x74/0xbc
    [<ffffff800853843c>] __device_attach+0xa4/0x128
    [<ffffff80085384d0>] device_initial_probe+0x10/0x18
    [<ffffff8008536b9c>] bus_probe_device+0x30/0x8c
    [<ffffff80085342c8>] device_add+0x4b4/0x544
    [<ffffff8008821268>] of_device_add+0x34/0x44
    [<ffffff8008821c4c>] of_platform_device_create_pdata+0x7c/0xb0

Change-Id: Ib4544b7f998812fd4a17e17796d65178e783d2e6
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
drivers/pinctrl/samsung/pinctrl-exynos.c

index 16766c68fb3949ee0603558a302528df0ae718e4..a684ca2c7d63ef0200a4f4c4ac70ee7be6304efb 100644 (file)
@@ -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;