staging: mt7621-pinctrl: replace ENOSYS with better fitting error code
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 8 Jun 2018 12:16:34 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:46:05 +0000 (21:46 +0900)
This commit replaces ENOSYS return with ENOTSUPP silencing the
following checkpatch warning:

WARNING: ENOSYS means 'invalid syscall nr' and nothing else
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c

index 8d5d4f1..1e49a7b 100644 (file)
@@ -398,7 +398,7 @@ static int rt2880_pinmux_probe(struct platform_device *pdev)
        struct device_node *np;
 
        if (!rt2880_pinmux_data)
-               return -ENOSYS;
+               return -ENOTSUPP;
 
        /* setup the private data */
        p = devm_kzalloc(&pdev->dev, sizeof(struct rt2880_priv), GFP_KERNEL);