Message ID | 07e55fcd-8ba5-bae4-0d05-34ada8453a47@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 9d8b4e2d7063..cdad20811d35 100644 --- a/drivers/input/misc/sirfsoc-onkey.c +++ b/drivers/input/misc/sirfsoc-onkey.c @@ -111,8 +111,7 @@ static int sirfsoc_pwrc_probe(struct platform_device *pdev) int irq; int error; - pwrcdrv = devm_kzalloc(&pdev->dev, sizeof(struct sirfsoc_pwrc_drvdata), - GFP_KERNEL); + pwrcdrv = devm_kzalloc(&pdev->dev, sizeof(*pwrcdrv), GFP_KERNEL); if (!pwrcdrv) return -ENOMEM;