aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 04:39:07 -0400
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 04:55:03 -0400
commit5605beb29b454a0aac59fb1e3d903080ee60cb49 (patch)
treee76ac6167def12119b8573543a506e45ade20bb8 /drivers/gpio
parent6c8365f68ab38bfac58a53cbd244c04da0d76a73 (diff)
gpio: palmas: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-palmas.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-palmas.c b/drivers/gpio/gpio-palmas.c
index da9d33252e56..a5ec6022e789 100644
--- a/drivers/gpio/gpio-palmas.c
+++ b/drivers/gpio/gpio-palmas.c
@@ -173,10 +173,8 @@ static int palmas_gpio_probe(struct platform_device *pdev)
173 173
174 palmas_gpio = devm_kzalloc(&pdev->dev, 174 palmas_gpio = devm_kzalloc(&pdev->dev,
175 sizeof(*palmas_gpio), GFP_KERNEL); 175 sizeof(*palmas_gpio), GFP_KERNEL);
176 if (!palmas_gpio) { 176 if (!palmas_gpio)
177 dev_err(&pdev->dev, "Could not allocate palmas_gpio\n");
178 return -ENOMEM; 177 return -ENOMEM;
179 }
180 178
181 palmas_gpio->palmas = palmas; 179 palmas_gpio->palmas = palmas;
182 palmas_gpio->gpio_chip.owner = THIS_MODULE; 180 palmas_gpio->gpio_chip.owner = THIS_MODULE;