diff options
Diffstat (limited to 'drivers/gpio/gpio-adp5520.c')
| -rw-r--r-- | drivers/gpio/gpio-adp5520.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-adp5520.c b/drivers/gpio/gpio-adp5520.c index 084337d5514..f1ade8fa321 100644 --- a/drivers/gpio/gpio-adp5520.c +++ b/drivers/gpio/gpio-adp5520.c @@ -106,10 +106,8 @@ static int adp5520_gpio_probe(struct platform_device *pdev)  	}  	dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); -	if (dev == NULL) { -		dev_err(&pdev->dev, "failed to alloc memory\n"); +	if (dev == NULL)  		return -ENOMEM; -	}  	dev->master = pdev->dev.parent; @@ -127,7 +125,7 @@ static int adp5520_gpio_probe(struct platform_device *pdev)  	gc->direction_output = adp5520_gpio_direction_output;  	gc->get = adp5520_gpio_get_value;  	gc->set = adp5520_gpio_set_value; -	gc->can_sleep = 1; +	gc->can_sleep = true;  	gc->base = pdata->gpio_start;  	gc->ngpio = gpios;  | 
