diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 15:05:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 15:05:51 -0500 |
commit | 06991c28f37ad68e5c03777f5c3b679b56e3dac1 (patch) | |
tree | 4be75788e21c3c644fe6d39abf47693a171cf4f8 /drivers/gpu | |
parent | 460dc1eecf37263c8e3b17685ef236f0d236facb (diff) | |
parent | 74fef7a8fd1d2bd94f925d6638bb4c3049e7c381 (diff) |
Merge tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core patches from Greg Kroah-Hartman:
"Here is the big driver core merge for 3.9-rc1
There are two major series here, both of which touch lots of drivers
all over the kernel, and will cause you some merge conflicts:
- add a new function called devm_ioremap_resource() to properly be
able to check return values.
- remove CONFIG_EXPERIMENTAL
Other than those patches, there's not much here, some minor fixes and
updates"
Fix up trivial conflicts
* tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (221 commits)
base: memory: fix soft/hard_offline_page permissions
drivercore: Fix ordering between deferred_probe and exiting initcalls
backlight: fix class_find_device() arguments
TTY: mark tty_get_device call with the proper const values
driver-core: constify data for class_find_device()
firmware: Ignore abort check when no user-helper is used
firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER
firmware: Make user-mode helper optional
firmware: Refactoring for splitting user-mode helper code
Driver core: treat unregistered bus_types as having no devices
watchdog: Convert to devm_ioremap_resource()
thermal: Convert to devm_ioremap_resource()
spi: Convert to devm_ioremap_resource()
power: Convert to devm_ioremap_resource()
mtd: Convert to devm_ioremap_resource()
mmc: Convert to devm_ioremap_resource()
mfd: Convert to devm_ioremap_resource()
media: Convert to devm_ioremap_resource()
iommu: Convert to devm_ioremap_resource()
drm: Convert to devm_ioremap_resource()
...
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/ast/Kconfig | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/cirrus/Kconfig | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimc.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_g2d.c | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gsc.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_rotator.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/Kconfig | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/mgag200/Kconfig | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/hdmi.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/host1x.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/udl/Kconfig | 2 |
14 files changed, 32 insertions, 45 deletions
diff --git a/drivers/gpu/drm/ast/Kconfig b/drivers/gpu/drm/ast/Kconfig index a277b1257888..da4a51eae824 100644 --- a/drivers/gpu/drm/ast/Kconfig +++ b/drivers/gpu/drm/ast/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DRM_AST | 1 | config DRM_AST |
2 | tristate "AST server chips" | 2 | tristate "AST server chips" |
3 | depends on DRM && PCI && EXPERIMENTAL | 3 | depends on DRM && PCI |
4 | select DRM_TTM | 4 | select DRM_TTM |
5 | select FB_SYS_COPYAREA | 5 | select FB_SYS_COPYAREA |
6 | select FB_SYS_FILLRECT | 6 | select FB_SYS_FILLRECT |
diff --git a/drivers/gpu/drm/cirrus/Kconfig b/drivers/gpu/drm/cirrus/Kconfig index fc154dd75296..bf67b22723f9 100644 --- a/drivers/gpu/drm/cirrus/Kconfig +++ b/drivers/gpu/drm/cirrus/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DRM_CIRRUS_QEMU | 1 | config DRM_CIRRUS_QEMU |
2 | tristate "Cirrus driver for QEMU emulated device" | 2 | tristate "Cirrus driver for QEMU emulated device" |
3 | depends on DRM && PCI && EXPERIMENTAL | 3 | depends on DRM && PCI |
4 | select FB_SYS_FILLRECT | 4 | select FB_SYS_FILLRECT |
5 | select FB_SYS_COPYAREA | 5 | select FB_SYS_COPYAREA |
6 | select FB_SYS_IMAGEBLIT | 6 | select FB_SYS_IMAGEBLIT |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c index 67a83e69544b..411f69b76e84 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c | |||
@@ -1785,11 +1785,9 @@ static int fimc_probe(struct platform_device *pdev) | |||
1785 | 1785 | ||
1786 | /* resource memory */ | 1786 | /* resource memory */ |
1787 | ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1787 | ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1788 | ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res); | 1788 | ctx->regs = devm_ioremap_resource(dev, ctx->regs_res); |
1789 | if (!ctx->regs) { | 1789 | if (IS_ERR(ctx->regs)) |
1790 | dev_err(dev, "failed to map registers.\n"); | 1790 | return PTR_ERR(ctx->regs); |
1791 | return -ENXIO; | ||
1792 | } | ||
1793 | 1791 | ||
1794 | /* resource irq */ | 1792 | /* resource irq */ |
1795 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 1793 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 9537761931ee..36493ce71f9a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -913,11 +913,9 @@ static int fimd_probe(struct platform_device *pdev) | |||
913 | 913 | ||
914 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 914 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
915 | 915 | ||
916 | ctx->regs = devm_request_and_ioremap(&pdev->dev, res); | 916 | ctx->regs = devm_ioremap_resource(&pdev->dev, res); |
917 | if (!ctx->regs) { | 917 | if (IS_ERR(ctx->regs)) |
918 | dev_err(dev, "failed to map registers\n"); | 918 | return PTR_ERR(ctx->regs); |
919 | return -ENXIO; | ||
920 | } | ||
921 | 919 | ||
922 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 920 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
923 | if (!res) { | 921 | if (!res) { |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 9a4c08e7453c..fb2f81b8063d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c | |||
@@ -1136,10 +1136,9 @@ static int g2d_probe(struct platform_device *pdev) | |||
1136 | 1136 | ||
1137 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1137 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1138 | 1138 | ||
1139 | g2d->regs = devm_request_and_ioremap(&pdev->dev, res); | 1139 | g2d->regs = devm_ioremap_resource(&pdev->dev, res); |
1140 | if (!g2d->regs) { | 1140 | if (IS_ERR(g2d->regs)) { |
1141 | dev_err(dev, "failed to remap I/O memory\n"); | 1141 | ret = PTR_ERR(g2d->regs); |
1142 | ret = -ENXIO; | ||
1143 | goto err_put_clk; | 1142 | goto err_put_clk; |
1144 | } | 1143 | } |
1145 | 1144 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 8140753ec9c8..7841c3b8a20e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c | |||
@@ -1692,11 +1692,9 @@ static int gsc_probe(struct platform_device *pdev) | |||
1692 | 1692 | ||
1693 | /* resource memory */ | 1693 | /* resource memory */ |
1694 | ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1694 | ctx->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1695 | ctx->regs = devm_request_and_ioremap(dev, ctx->regs_res); | 1695 | ctx->regs = devm_ioremap_resource(dev, ctx->regs_res); |
1696 | if (!ctx->regs) { | 1696 | if (IS_ERR(ctx->regs)) |
1697 | dev_err(dev, "failed to map registers.\n"); | 1697 | return PTR_ERR(ctx->regs); |
1698 | return -ENXIO; | ||
1699 | } | ||
1700 | 1698 | ||
1701 | /* resource irq */ | 1699 | /* resource irq */ |
1702 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 1700 | res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index f976e29def6e..a40b9fb60240 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c | |||
@@ -656,11 +656,9 @@ static int rotator_probe(struct platform_device *pdev) | |||
656 | platform_get_device_id(pdev)->driver_data; | 656 | platform_get_device_id(pdev)->driver_data; |
657 | 657 | ||
658 | rot->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 658 | rot->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
659 | rot->regs = devm_request_and_ioremap(dev, rot->regs_res); | 659 | rot->regs = devm_ioremap_resource(dev, rot->regs_res); |
660 | if (!rot->regs) { | 660 | if (IS_ERR(rot->regs)) |
661 | dev_err(dev, "failed to map register\n"); | 661 | return PTR_ERR(rot->regs); |
662 | return -ENXIO; | ||
663 | } | ||
664 | 662 | ||
665 | rot->irq = platform_get_irq(pdev, 0); | 663 | rot->irq = platform_get_irq(pdev, 0); |
666 | if (rot->irq < 0) { | 664 | if (rot->irq < 0) { |
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index fbab3c468603..233247505ff8 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -2501,11 +2501,9 @@ static int hdmi_probe(struct platform_device *pdev) | |||
2501 | return -ENOENT; | 2501 | return -ENOENT; |
2502 | } | 2502 | } |
2503 | 2503 | ||
2504 | hdata->regs = devm_request_and_ioremap(&pdev->dev, res); | 2504 | hdata->regs = devm_ioremap_resource(&pdev->dev, res); |
2505 | if (!hdata->regs) { | 2505 | if (IS_ERR(hdata->regs)) |
2506 | DRM_ERROR("failed to map registers\n"); | 2506 | return PTR_ERR(hdata->regs); |
2507 | return -ENXIO; | ||
2508 | } | ||
2509 | 2507 | ||
2510 | ret = devm_gpio_request(&pdev->dev, hdata->hpd_gpio, "HPD"); | 2508 | ret = devm_gpio_request(&pdev->dev, hdata->hpd_gpio, "HPD"); |
2511 | if (ret) { | 2509 | if (ret) { |
diff --git a/drivers/gpu/drm/gma500/Kconfig b/drivers/gpu/drm/gma500/Kconfig index 42e665c7e90a..1188f0fe7e4f 100644 --- a/drivers/gpu/drm/gma500/Kconfig +++ b/drivers/gpu/drm/gma500/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DRM_GMA500 | 1 | config DRM_GMA500 |
2 | tristate "Intel GMA5/600 KMS Framebuffer" | 2 | tristate "Intel GMA5/600 KMS Framebuffer" |
3 | depends on DRM && PCI && X86 && EXPERIMENTAL | 3 | depends on DRM && PCI && X86 |
4 | select FB_CFB_COPYAREA | 4 | select FB_CFB_COPYAREA |
5 | select FB_CFB_FILLRECT | 5 | select FB_CFB_FILLRECT |
6 | select FB_CFB_IMAGEBLIT | 6 | select FB_CFB_IMAGEBLIT |
diff --git a/drivers/gpu/drm/mgag200/Kconfig b/drivers/gpu/drm/mgag200/Kconfig index d63013497f66..b487cdec5ee7 100644 --- a/drivers/gpu/drm/mgag200/Kconfig +++ b/drivers/gpu/drm/mgag200/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DRM_MGAG200 | 1 | config DRM_MGAG200 |
2 | tristate "Kernel modesetting driver for MGA G200 server engines" | 2 | tristate "Kernel modesetting driver for MGA G200 server engines" |
3 | depends on DRM && PCI && EXPERIMENTAL | 3 | depends on DRM && PCI |
4 | select FB_SYS_FILLRECT | 4 | select FB_SYS_FILLRECT |
5 | select FB_SYS_COPYAREA | 5 | select FB_SYS_COPYAREA |
6 | select FB_SYS_IMAGEBLIT | 6 | select FB_SYS_IMAGEBLIT |
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 656b2e3334a6..d365c6dff0fb 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c | |||
@@ -764,11 +764,9 @@ static int tegra_dc_probe(struct platform_device *pdev) | |||
764 | return -ENXIO; | 764 | return -ENXIO; |
765 | } | 765 | } |
766 | 766 | ||
767 | dc->regs = devm_request_and_ioremap(&pdev->dev, regs); | 767 | dc->regs = devm_ioremap_resource(&pdev->dev, regs); |
768 | if (!dc->regs) { | 768 | if (IS_ERR(dc->regs)) |
769 | dev_err(&pdev->dev, "failed to remap registers\n"); | 769 | return PTR_ERR(dc->regs); |
770 | return -ENXIO; | ||
771 | } | ||
772 | 770 | ||
773 | dc->irq = platform_get_irq(pdev, 0); | 771 | dc->irq = platform_get_irq(pdev, 0); |
774 | if (dc->irq < 0) { | 772 | if (dc->irq < 0) { |
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index e060c7e6434d..266af7879240 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c | |||
@@ -1259,9 +1259,9 @@ static int tegra_hdmi_probe(struct platform_device *pdev) | |||
1259 | if (!regs) | 1259 | if (!regs) |
1260 | return -ENXIO; | 1260 | return -ENXIO; |
1261 | 1261 | ||
1262 | hdmi->regs = devm_request_and_ioremap(&pdev->dev, regs); | 1262 | hdmi->regs = devm_ioremap_resource(&pdev->dev, regs); |
1263 | if (!hdmi->regs) | 1263 | if (IS_ERR(hdmi->regs)) |
1264 | return -EADDRNOTAVAIL; | 1264 | return PTR_ERR(hdmi->regs); |
1265 | 1265 | ||
1266 | err = platform_get_irq(pdev, 0); | 1266 | err = platform_get_irq(pdev, 0); |
1267 | if (err < 0) | 1267 | if (err < 0) |
diff --git a/drivers/gpu/drm/tegra/host1x.c b/drivers/gpu/drm/tegra/host1x.c index 5d17b113a6fc..92e25a7e00ea 100644 --- a/drivers/gpu/drm/tegra/host1x.c +++ b/drivers/gpu/drm/tegra/host1x.c | |||
@@ -139,9 +139,9 @@ static int tegra_host1x_probe(struct platform_device *pdev) | |||
139 | 139 | ||
140 | host1x->irq = err; | 140 | host1x->irq = err; |
141 | 141 | ||
142 | host1x->regs = devm_request_and_ioremap(&pdev->dev, regs); | 142 | host1x->regs = devm_ioremap_resource(&pdev->dev, regs); |
143 | if (!host1x->regs) { | 143 | if (IS_ERR(host1x->regs)) { |
144 | err = -EADDRNOTAVAIL; | 144 | err = PTR_ERR(host1x->regs); |
145 | goto err; | 145 | goto err; |
146 | } | 146 | } |
147 | 147 | ||
diff --git a/drivers/gpu/drm/udl/Kconfig b/drivers/gpu/drm/udl/Kconfig index 56e0bf31d425..6222af19f456 100644 --- a/drivers/gpu/drm/udl/Kconfig +++ b/drivers/gpu/drm/udl/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config DRM_UDL | 1 | config DRM_UDL |
2 | tristate "DisplayLink" | 2 | tristate "DisplayLink" |
3 | depends on DRM && EXPERIMENTAL | 3 | depends on DRM |
4 | depends on USB_ARCH_HAS_HCD | 4 | depends on USB_ARCH_HAS_HCD |
5 | select DRM_USB | 5 | select DRM_USB |
6 | select FB_SYS_FILLRECT | 6 | select FB_SYS_FILLRECT |