Message ID | 00544fed-52b0-0536-ad4e-f023668f08dd@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/misc/sirfsoc-onkey.c b/drivers/input/misc/sirfsoc-onkey.c index 4fd038d476a3..9d8b4e2d7063 100644 --- a/drivers/input/misc/sirfsoc-onkey.c +++ b/drivers/input/misc/sirfsoc-onkey.c @@ -113,10 +113,8 @@ static int sirfsoc_pwrc_probe(struct platform_device *pdev) pwrcdrv = devm_kzalloc(&pdev->dev, sizeof(struct sirfsoc_pwrc_drvdata), GFP_KERNEL); - if (!pwrcdrv) { - dev_info(&pdev->dev, "Not enough memory for the device data\n"); + if (!pwrcdrv) return -ENOMEM; - } /* * We can't use of_iomap because pwrc is not mapped in memory,