Skip to content

Commit

Permalink
Merge tag 'fbdev-fixes-3.12' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/tomba/linux

Pull fbdev fixes from Tomi Valkeinen:
 "Small fbdev fixes for various fb drivers"

* tag 'fbdev-fixes-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux:
  video: mxsfb: Add missing break
  video: of: display_timing: correct display-timings node finding
  neofb: fix error return code in neofb_probe()
  s3fb: fix error return code in s3_pci_probe()
  video: mmp: drop needless devm cleanup
  OMAPDSS: Add missing dependency on backlight for DSI-CM panel drier
  OMAPDSS: DISPC: set irq_safe for runtime PM
  OMAPDSS: Return right error during connector probe
  • Loading branch information
Linus Torvalds committed Sep 27, 2013
2 parents e1f8826 + 6d0bb81 commit d3aa026
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 30 deletions.
17 changes: 2 additions & 15 deletions drivers/video/mmp/hw/mmp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static int mmphw_probe(struct platform_device *pdev)
if (IS_ERR(ctrl->clk)) {
dev_err(ctrl->dev, "unable to get clk %s\n", mi->clk_name);
ret = -ENOENT;
goto failed_get_clk;
goto failed;
}
clk_prepare_enable(ctrl->clk);

Expand Down Expand Up @@ -551,21 +551,8 @@ static int mmphw_probe(struct platform_device *pdev)
path_deinit(path_plat);
}

if (ctrl->clk) {
devm_clk_put(ctrl->dev, ctrl->clk);
clk_disable_unprepare(ctrl->clk);
}
failed_get_clk:
devm_free_irq(ctrl->dev, ctrl->irq, ctrl);
clk_disable_unprepare(ctrl->clk);
failed:
if (ctrl) {
if (ctrl->reg_base)
devm_iounmap(ctrl->dev, ctrl->reg_base);
devm_release_mem_region(ctrl->dev, res->start,
resource_size(res));
devm_kfree(ctrl->dev, ctrl);
}

dev_err(&pdev->dev, "device init failed\n");

return ret;
Expand Down
1 change: 1 addition & 0 deletions drivers/video/mxsfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ static int mxsfb_restore_mode(struct mxsfb_info *host)
break;
case 3:
bits_per_pixel = 32;
break;
case 1:
default:
return -EINVAL;
Expand Down
4 changes: 3 additions & 1 deletion drivers/video/neofb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,7 @@ static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id)
if (!fb_find_mode(&info->var, info, mode_option, NULL, 0,
info->monspecs.modedb, 16)) {
printk(KERN_ERR "neofb: Unable to find usable video mode.\n");
err = -EINVAL;
goto err_map_video;
}

Expand All @@ -2097,7 +2098,8 @@ static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id)
info->fix.smem_len >> 10, info->var.xres,
info->var.yres, h_sync / 1000, h_sync % 1000, v_sync);

if (fb_alloc_cmap(&info->cmap, 256, 0) < 0)
err = fb_alloc_cmap(&info->cmap, 256, 0);
if (err < 0)
goto err_map_video;

err = register_framebuffer(info);
Expand Down
6 changes: 3 additions & 3 deletions drivers/video/of_display_timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int of_get_display_timing(struct device_node *np, const char *name,
return -EINVAL;
}

timing_np = of_find_node_by_name(np, name);
timing_np = of_get_child_by_name(np, name);
if (!timing_np) {
pr_err("%s: could not find node '%s'\n",
of_node_full_name(np), name);
Expand All @@ -143,11 +143,11 @@ struct display_timings *of_get_display_timings(struct device_node *np)
struct display_timings *disp;

if (!np) {
pr_err("%s: no devicenode given\n", of_node_full_name(np));
pr_err("%s: no device node given\n", of_node_full_name(np));
return NULL;
}

timings_np = of_find_node_by_name(np, "display-timings");
timings_np = of_get_child_by_name(np, "display-timings");
if (!timings_np) {
pr_err("%s: could not find display-timings node\n",
of_node_full_name(np));
Expand Down
1 change: 1 addition & 0 deletions drivers/video/omap2/displays-new/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ config DISPLAY_PANEL_DPI

config DISPLAY_PANEL_DSI_CM
tristate "Generic DSI Command Mode Panel"
depends on BACKLIGHT_CLASS_DEVICE
help
Driver for generic DSI command mode panels.

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays-new/connector-analog-tv.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int tvc_probe_pdata(struct platform_device *pdev)
in = omap_dss_find_output(pdata->source);
if (in == NULL) {
dev_err(&pdev->dev, "Failed to find video source\n");
return -ENODEV;
return -EPROBE_DEFER;
}

ddata->in = in;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays-new/connector-dvi.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ static int dvic_probe_pdata(struct platform_device *pdev)
in = omap_dss_find_output(pdata->source);
if (in == NULL) {
dev_err(&pdev->dev, "Failed to find video source\n");
return -ENODEV;
return -EPROBE_DEFER;
}

ddata->in = in;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/omap2/displays-new/connector-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int hdmic_probe_pdata(struct platform_device *pdev)
in = omap_dss_find_output(pdata->source);
if (in == NULL) {
dev_err(&pdev->dev, "Failed to find video source\n");
return -ENODEV;
return -EPROBE_DEFER;
}

ddata->in = in;
Expand Down
1 change: 1 addition & 0 deletions drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3691,6 +3691,7 @@ static int __init omap_dispchw_probe(struct platform_device *pdev)
}

pm_runtime_enable(&pdev->dev);
pm_runtime_irq_safe(&pdev->dev);

r = dispc_runtime_get();
if (r)
Expand Down
9 changes: 1 addition & 8 deletions drivers/video/s3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,14 +1336,7 @@ static int s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
(info->var.bits_per_pixel * info->var.xres_virtual);
if (info->var.yres_virtual < info->var.yres) {
dev_err(info->device, "virtual vertical size smaller than real\n");
goto err_find_mode;
}

/* maximize virtual vertical size for fast scrolling */
info->var.yres_virtual = info->fix.smem_len * 8 /
(info->var.bits_per_pixel * info->var.xres_virtual);
if (info->var.yres_virtual < info->var.yres) {
dev_err(info->device, "virtual vertical size smaller than real\n");
rc = -EINVAL;
goto err_find_mode;
}

Expand Down

0 comments on commit d3aa026

Please sign in to comment.