aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti/sti_hqvdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/sti/sti_hqvdp.c')
-rw-r--r--drivers/gpu/drm/sti/sti_hqvdp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/sti/sti_hqvdp.c b/drivers/gpu/drm/sti/sti_hqvdp.c
index 66f843148ef7..a1c161f77804 100644
--- a/drivers/gpu/drm/sti/sti_hqvdp.c
+++ b/drivers/gpu/drm/sti/sti_hqvdp.c
@@ -625,8 +625,7 @@ static int hqvdp_dbg_show(struct seq_file *s, void *data)
625 hqvdp_dbg_dump_cmd(s, (struct sti_hqvdp_cmd *)virt); 625 hqvdp_dbg_dump_cmd(s, (struct sti_hqvdp_cmd *)virt);
626 } 626 }
627 627
628 seq_puts(s, "\n"); 628 seq_putc(s, '\n');
629
630 return 0; 629 return 0;
631} 630}
632 631
@@ -1357,12 +1356,12 @@ static int sti_hqvdp_probe(struct platform_device *pdev)
1357 1356
1358 /* Get Memory resources */ 1357 /* Get Memory resources */
1359 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1358 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1360 if (res == NULL) { 1359 if (!res) {
1361 DRM_ERROR("Get memory resource failed\n"); 1360 DRM_ERROR("Get memory resource failed\n");
1362 return -ENXIO; 1361 return -ENXIO;
1363 } 1362 }
1364 hqvdp->regs = devm_ioremap(dev, res->start, resource_size(res)); 1363 hqvdp->regs = devm_ioremap(dev, res->start, resource_size(res));
1365 if (hqvdp->regs == NULL) { 1364 if (!hqvdp->regs) {
1366 DRM_ERROR("Register mapping failed\n"); 1365 DRM_ERROR("Register mapping failed\n");
1367 return -ENXIO; 1366 return -ENXIO;
1368 } 1367 }