aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-03-20 02:59:29 -0400
committerDave Airlie <airlied@redhat.com>2012-03-20 02:59:29 -0400
commit9c1dfc5574a7f7115c0fe5bd8f838a8b7a52ee6d (patch)
tree20c88bf1d10c03200b8ce6d3880d51e1325506d5 /drivers/gpu
parent2de6d4a9e46c9bb038e9970628ed4b8e199ffda3 (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/Kconfig5
-rw-r--r--drivers/gpu/drm/Makefile4
-rw-r--r--drivers/gpu/drm/drm_crtc.c1
-rw-r--r--drivers/gpu/drm/drm_stub.c3
-rw-r--r--drivers/gpu/drm/udl/Kconfig2
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
21config DRM_USB
22 tristate
23 depends on DRM
24 select USB
25
21config DRM_KMS_HELPER 26config 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
17drm-$(CONFIG_USB) += drm_usb.o
18drm-$(CONFIG_COMPAT) += drm_ioc32.o 17drm-$(CONFIG_COMPAT) += drm_ioc32.o
19 18
19drm-usb-y := drm_usb.o
20
20drm_kms_helper-y := drm_fb_helper.o drm_crtc_helper.o drm_dp_i2c_helper.o 21drm_kms_helper-y := drm_fb_helper.o drm_crtc_helper.o drm_dp_i2c_helper.o
21 22
22obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o 23obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
@@ -24,6 +25,7 @@ obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
24CFLAGS_drm_trace_points.o := -I$(src) 25CFLAGS_drm_trace_points.o := -I$(src)
25 26
26obj-$(CONFIG_DRM) += drm.o 27obj-$(CONFIG_DRM) += drm.o
28obj-$(CONFIG_DRM_USB) += drm_usb.o
27obj-$(CONFIG_DRM_TTM) += ttm/ 29obj-$(CONFIG_DRM_TTM) += ttm/
28obj-$(CONFIG_DRM_TDFX) += tdfx/ 30obj-$(CONFIG_DRM_TDFX) += tdfx/
29obj-$(CONFIG_DRM_R128) += r128/ 31obj-$(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}
989EXPORT_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}
322EXPORT_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}
401EXPORT_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}
433EXPORT_SYMBOL(drm_put_minor);
431 434
432static void drm_unplug_minor(struct drm_minor *minor) 435static 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 @@
1config DRM_UDL 1config 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