summaryrefslogtreecommitdiff
path: root/drivers/mtd/devices/pmc551.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/pmc551.c')
-rw-r--r--drivers/mtd/devices/pmc551.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c
index 6597fc2aad34..dc0ebfeb846e 100644
--- a/drivers/mtd/devices/pmc551.c
+++ b/drivers/mtd/devices/pmc551.c
@@ -715,11 +715,11 @@ static int __init init_pmc551(void)
msize = length;
}
- mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL);
+ mtd = kzalloc_obj(struct mtd_info);
if (!mtd)
break;
- priv = kzalloc(sizeof(struct mypriv), GFP_KERNEL);
+ priv = kzalloc_obj(struct mypriv);
if (!priv) {
kfree(mtd);
break;