diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-06-08 14:16:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 21:46:05 +0900 |
commit | 32c6dcffdd20e8697ca5f2ce13f9bfbc582f1caf (patch) | |
tree | f206d9a916c9a2dc6295ef4d4ef23b23bcdb4981 /drivers/staging/mt7621-pinctrl | |
parent | 63e57b953f747ce39f8de51548b4e584f00273ae (diff) | |
download | linux-stable-32c6dcffdd20e8697ca5f2ce13f9bfbc582f1caf.tar.gz linux-stable-32c6dcffdd20e8697ca5f2ce13f9bfbc582f1caf.tar.bz2 linux-stable-32c6dcffdd20e8697ca5f2ce13f9bfbc582f1caf.zip |
staging: mt7621-pinctrl: replace ENOSYS with better fitting error code
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>
Diffstat (limited to 'drivers/staging/mt7621-pinctrl')
-rw-r--r-- | drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c index 8d5d4f15dc64..1e49a7b9e5fb 100644 --- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c +++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c @@ -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); |