diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-05 12:49:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-05 12:49:32 -0400 |
commit | 9ab073bc45b8b523cc39658925bb44bef35ca657 (patch) | |
tree | 37bfe5c5fd5ef0d296fe47c7ed2c227b198e8fdc /drivers/video/mxsfb.c | |
parent | eced5a0a5a8f7a3b07320e3b7d1d432e0f044735 (diff) | |
parent | 028cd86b794f4a7f09525587c8e9ab6b03a6fa0f (diff) |
Merge tag 'fbdev-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux
Pull fbdev changes from Tomi Valkeinen:
- Improvements to da8xx-fb to make it support v2 of the LCDC IP, used
eg in BeagleBone
- Himax HX8369 controller support
- Various small fixes and cleanups
* tag 'fbdev-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (42 commits)
video: da8xx-fb: fix the polarities of the hsync/vsync pulse
video: da8xx-fb: support lcdc v2 timing register expansion
video: da8xx-fb: fixing timing off by one errors
video: da8xx-fb fixing incorrect porch mappings
video: xilinxfb: replace devm_request_and_ioremap by devm_ioremap_resource
fbmem: move EXPORT_SYMBOL annotation next to symbol declarations
drivers: video: fbcmap: remove the redundency and incorrect checkings
video: mxsfb: simplify use of devm_ioremap_resource
Release efifb's colormap in efifb_destroy()
at91/avr32/atmel_lcdfb: prepare clk before calling enable
video: exynos: Ensure definitions match prototypes
OMAPDSS: fix WARN_ON in 'alpha_blending_enabled' sysfs file
OMAPDSS: HDMI: Fix possible NULL reference
video: da8xx-fb: adding am33xx as dependency
video: da8xx-fb: let compiler decide what to inline
video: da8xx-fb: make clock naming consistent
video: da8xx-fb: set upstream clock rate (if reqd)
video: da8xx-fb: reorganize panel detection
video: da8xx-fb: ensure non-null cfg in pdata
video: da8xx-fb: use devres
...
Diffstat (limited to 'drivers/video/mxsfb.c')
-rw-r--r-- | drivers/video/mxsfb.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index dc09ebe4aba5..d250ed0f806d 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/clk.h> | 46 | #include <linux/clk.h> |
47 | #include <linux/dma-mapping.h> | 47 | #include <linux/dma-mapping.h> |
48 | #include <linux/io.h> | 48 | #include <linux/io.h> |
49 | #include <linux/pinctrl/consumer.h> | ||
50 | #include <linux/fb.h> | 49 | #include <linux/fb.h> |
51 | #include <linux/regulator/consumer.h> | 50 | #include <linux/regulator/consumer.h> |
52 | #include <video/of_display_timing.h> | 51 | #include <video/of_display_timing.h> |
@@ -851,18 +850,11 @@ static int mxsfb_probe(struct platform_device *pdev) | |||
851 | struct mxsfb_info *host; | 850 | struct mxsfb_info *host; |
852 | struct fb_info *fb_info; | 851 | struct fb_info *fb_info; |
853 | struct fb_modelist *modelist; | 852 | struct fb_modelist *modelist; |
854 | struct pinctrl *pinctrl; | ||
855 | int ret; | 853 | int ret; |
856 | 854 | ||
857 | if (of_id) | 855 | if (of_id) |
858 | pdev->id_entry = of_id->data; | 856 | pdev->id_entry = of_id->data; |
859 | 857 | ||
860 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
861 | if (!res) { | ||
862 | dev_err(&pdev->dev, "Cannot get memory IO resource\n"); | ||
863 | return -ENODEV; | ||
864 | } | ||
865 | |||
866 | fb_info = framebuffer_alloc(sizeof(struct mxsfb_info), &pdev->dev); | 858 | fb_info = framebuffer_alloc(sizeof(struct mxsfb_info), &pdev->dev); |
867 | if (!fb_info) { | 859 | if (!fb_info) { |
868 | dev_err(&pdev->dev, "Failed to allocate fbdev\n"); | 860 | dev_err(&pdev->dev, "Failed to allocate fbdev\n"); |
@@ -871,6 +863,7 @@ static int mxsfb_probe(struct platform_device *pdev) | |||
871 | 863 | ||
872 | host = to_imxfb_host(fb_info); | 864 | host = to_imxfb_host(fb_info); |
873 | 865 | ||
866 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
874 | host->base = devm_ioremap_resource(&pdev->dev, res); | 867 | host->base = devm_ioremap_resource(&pdev->dev, res); |
875 | if (IS_ERR(host->base)) { | 868 | if (IS_ERR(host->base)) { |
876 | ret = PTR_ERR(host->base); | 869 | ret = PTR_ERR(host->base); |
@@ -882,12 +875,6 @@ static int mxsfb_probe(struct platform_device *pdev) | |||
882 | 875 | ||
883 | host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data]; | 876 | host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data]; |
884 | 877 | ||
885 | pinctrl = devm_pinctrl_get_select_default(&pdev->dev); | ||
886 | if (IS_ERR(pinctrl)) { | ||
887 | ret = PTR_ERR(pinctrl); | ||
888 | goto fb_release; | ||
889 | } | ||
890 | |||
891 | host->clk = devm_clk_get(&host->pdev->dev, NULL); | 878 | host->clk = devm_clk_get(&host->pdev->dev, NULL); |
892 | if (IS_ERR(host->clk)) { | 879 | if (IS_ERR(host->clk)) { |
893 | ret = PTR_ERR(host->clk); | 880 | ret = PTR_ERR(host->clk); |