diff options
author | Dave Airlie <airlied@redhat.com> | 2012-03-20 02:59:29 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-20 02:59:29 -0400 |
commit | 9c1dfc5574a7f7115c0fe5bd8f838a8b7a52ee6d (patch) | |
tree | 20c88bf1d10c03200b8ce6d3880d51e1325506d5 /drivers/gpu | |
parent | 2de6d4a9e46c9bb038e9970628ed4b8e199ffda3 (diff) |
drm/usb: move usb support into a separate module
In order to satisfy all the various Kconfig options between
USB and DRM, we need to split the USB code out into a separate module
and export symbols to it.
This fixes build problems in -next reported by sfr.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/Kconfig | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/Makefile | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/udl/Kconfig | 2 |
5 files changed, 13 insertions, 2 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index ed2f6901b1e8..6b358d1dfb24 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig | |||
@@ -18,6 +18,11 @@ menuconfig DRM | |||
18 | details. You should also select and configure AGP | 18 | details. You should also select and configure AGP |
19 | (/dev/agpgart) support if it is available for your platform. | 19 | (/dev/agpgart) support if it is available for your platform. |
20 | 20 | ||
21 | config DRM_USB | ||
22 | tristate | ||
23 | depends on DRM | ||
24 | select USB | ||
25 | |||
21 | config DRM_KMS_HELPER | 26 | config DRM_KMS_HELPER |
22 | tristate | 27 | tristate |
23 | depends on DRM | 28 | depends on DRM |
diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index ed407cc7f26f..3b8be8939bb6 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile | |||
@@ -14,9 +14,10 @@ drm-y := drm_auth.o drm_buffer.o drm_bufs.o drm_cache.o \ | |||
14 | drm_info.o drm_debugfs.o drm_encoder_slave.o \ | 14 | drm_info.o drm_debugfs.o drm_encoder_slave.o \ |
15 | drm_trace_points.o drm_global.o | 15 | drm_trace_points.o drm_global.o |
16 | 16 | ||
17 | drm-$(CONFIG_USB) += drm_usb.o | ||
18 | drm-$(CONFIG_COMPAT) += drm_ioc32.o | 17 | drm-$(CONFIG_COMPAT) += drm_ioc32.o |
19 | 18 | ||
19 | drm-usb-y := drm_usb.o | ||
20 | |||
20 | drm_kms_helper-y := drm_fb_helper.o drm_crtc_helper.o drm_dp_i2c_helper.o | 21 | drm_kms_helper-y := drm_fb_helper.o drm_crtc_helper.o drm_dp_i2c_helper.o |
21 | 22 | ||
22 | obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o | 23 | obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o |
@@ -24,6 +25,7 @@ obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o | |||
24 | CFLAGS_drm_trace_points.o := -I$(src) | 25 | CFLAGS_drm_trace_points.o := -I$(src) |
25 | 26 | ||
26 | obj-$(CONFIG_DRM) += drm.o | 27 | obj-$(CONFIG_DRM) += drm.o |
28 | obj-$(CONFIG_DRM_USB) += drm_usb.o | ||
27 | obj-$(CONFIG_DRM_TTM) += ttm/ | 29 | obj-$(CONFIG_DRM_TTM) += ttm/ |
28 | obj-$(CONFIG_DRM_TDFX) += tdfx/ | 30 | obj-$(CONFIG_DRM_TDFX) += tdfx/ |
29 | obj-$(CONFIG_DRM_R128) += r128/ | 31 | obj-$(CONFIG_DRM_R128) += r128/ |
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 79902835d057..d3aaeb6ae236 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -986,6 +986,7 @@ int drm_mode_group_init_legacy_group(struct drm_device *dev, | |||
986 | 986 | ||
987 | return 0; | 987 | return 0; |
988 | } | 988 | } |
989 | EXPORT_SYMBOL(drm_mode_group_init_legacy_group); | ||
989 | 990 | ||
990 | /** | 991 | /** |
991 | * drm_mode_config_cleanup - free up DRM mode_config info | 992 | * drm_mode_config_cleanup - free up DRM mode_config info |
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index bbd40eaf9821..aa454f80e109 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -319,6 +319,7 @@ int drm_fill_in_dev(struct drm_device *dev, | |||
319 | drm_lastclose(dev); | 319 | drm_lastclose(dev); |
320 | return retcode; | 320 | return retcode; |
321 | } | 321 | } |
322 | EXPORT_SYMBOL(drm_fill_in_dev); | ||
322 | 323 | ||
323 | 324 | ||
324 | /** | 325 | /** |
@@ -397,6 +398,7 @@ err_idr: | |||
397 | *minor = NULL; | 398 | *minor = NULL; |
398 | return ret; | 399 | return ret; |
399 | } | 400 | } |
401 | EXPORT_SYMBOL(drm_get_minor); | ||
400 | 402 | ||
401 | /** | 403 | /** |
402 | * Put a secondary minor number. | 404 | * Put a secondary minor number. |
@@ -428,6 +430,7 @@ int drm_put_minor(struct drm_minor **minor_p) | |||
428 | *minor_p = NULL; | 430 | *minor_p = NULL; |
429 | return 0; | 431 | return 0; |
430 | } | 432 | } |
433 | EXPORT_SYMBOL(drm_put_minor); | ||
431 | 434 | ||
432 | static void drm_unplug_minor(struct drm_minor *minor) | 435 | static void drm_unplug_minor(struct drm_minor *minor) |
433 | { | 436 | { |
diff --git a/drivers/gpu/drm/udl/Kconfig b/drivers/gpu/drm/udl/Kconfig index f96799d1b408..0b5e096d39a6 100644 --- a/drivers/gpu/drm/udl/Kconfig +++ b/drivers/gpu/drm/udl/Kconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | config DRM_UDL | 1 | config DRM_UDL |
2 | tristate "DisplayLink" | 2 | tristate "DisplayLink" |
3 | depends on DRM && EXPERIMENTAL | 3 | depends on DRM && EXPERIMENTAL |
4 | select USB | 4 | select DRM_USB |
5 | select FB_SYS_FILLRECT | 5 | select FB_SYS_FILLRECT |
6 | select FB_SYS_COPYAREA | 6 | select FB_SYS_COPYAREA |
7 | select FB_SYS_IMAGEBLIT | 7 | select FB_SYS_IMAGEBLIT |