diff options
Diffstat (limited to 'drivers/video/msm/mddi_client_nt35399.c')
-rw-r--r-- | drivers/video/msm/mddi_client_nt35399.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/msm/mddi_client_nt35399.c b/drivers/video/msm/mddi_client_nt35399.c index d7a5bf84fb2a..f96df32e5509 100644 --- a/drivers/video/msm/mddi_client_nt35399.c +++ b/drivers/video/msm/mddi_client_nt35399.c | |||
@@ -189,8 +189,9 @@ static int mddi_nt35399_probe(struct platform_device *pdev) | |||
189 | 189 | ||
190 | int ret; | 190 | int ret; |
191 | 191 | ||
192 | struct panel_info *panel = kzalloc(sizeof(struct panel_info), | 192 | struct panel_info *panel = devm_kzalloc(&pdev->dev, |
193 | GFP_KERNEL); | 193 | sizeof(struct panel_info), |
194 | GFP_KERNEL); | ||
194 | 195 | ||
195 | printk(KERN_DEBUG "%s: enter.\n", __func__); | 196 | printk(KERN_DEBUG "%s: enter.\n", __func__); |
196 | 197 | ||
@@ -233,7 +234,6 @@ static int mddi_nt35399_remove(struct platform_device *pdev) | |||
233 | struct panel_info *panel = platform_get_drvdata(pdev); | 234 | struct panel_info *panel = platform_get_drvdata(pdev); |
234 | 235 | ||
235 | setup_vsync(panel, 0); | 236 | setup_vsync(panel, 0); |
236 | kfree(panel); | ||
237 | return 0; | 237 | return 0; |
238 | } | 238 | } |
239 | 239 | ||