mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
gpio: cs5535: Simplify the return expression of cs5535_gpio_probe()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Link: https://lore.kernel.org/r/20201210135609.1372-1-zhengyongjun3@huawei.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
9d55221995
commit
9777d0bfda
@@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev)
|
|||||||
mask_orig, mask);
|
mask_orig, mask);
|
||||||
|
|
||||||
/* finally, register with the generic GPIO API */
|
/* finally, register with the generic GPIO API */
|
||||||
err = devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
|
return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
|
||||||
&cs5535_gpio_chip);
|
&cs5535_gpio_chip);
|
||||||
if (err)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver cs5535_gpio_driver = {
|
static struct platform_driver cs5535_gpio_driver = {
|
||||||
|
Reference in New Issue
Block a user