summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/omap
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/omap')
-rw-r--r--drivers/video/fbdev/omap/lcd_mipid.c2
-rw-r--r--drivers/video/fbdev/omap/omapfb_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/omap/lcd_mipid.c b/drivers/video/fbdev/omap/lcd_mipid.c
index ffe0ce489adb..72c2a56943c2 100644
--- a/drivers/video/fbdev/omap/lcd_mipid.c
+++ b/drivers/video/fbdev/omap/lcd_mipid.c
@@ -552,7 +552,7 @@ static int mipid_spi_probe(struct spi_device *spi)
struct mipid_device *md;
int r;
- md = kzalloc_obj(*md, GFP_KERNEL);
+ md = kzalloc_obj(*md);
if (md == NULL) {
dev_err(&spi->dev, "out of memory\n");
return -ENOMEM;
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c
index 8306faf01f40..cafe859d6e5a 100644
--- a/drivers/video/fbdev/omap/omapfb_main.c
+++ b/drivers/video/fbdev/omap/omapfb_main.c
@@ -1630,7 +1630,7 @@ static int omapfb_do_probe(struct platform_device *pdev,
goto cleanup;
}
- fbdev = kzalloc_obj(*fbdev, GFP_KERNEL);
+ fbdev = kzalloc_obj(*fbdev);
if (fbdev == NULL) {
dev_err(&pdev->dev,
"unable to allocate memory for device info\n");