drm: move __OS_HAS_AGP into drm_agpsupport.h
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 29 Aug 2014 10:12:36 +0000 (12:12 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Sep 2014 07:41:03 +0000 (17:41 +1000)
With drm_memory.h gone, there is no header left that uses __OS_HAS_AGP.
Move it into drm_agpsupport.h (which is itself included from drmP.h) to
hide it harder from public eyes.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/drm/drmP.h
include/drm/drm_agpsupport.h

index 294f7daf543ec55e29b7bdc2e29b01d0ce9ea74f..c6f337c54d9f84391ccefdbdef5fff82bb302b89 100644 (file)
@@ -67,8 +67,6 @@
 
 #include <linux/idr.h>
 
-#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE)))
-
 struct module;
 
 struct drm_file;
index 3bebeb4af8645a7188ee64672bde307b23d678b3..4f1724c7ba8ca0923856042eb4bda07fdd6cca93 100644 (file)
@@ -8,6 +8,9 @@
 #include <linux/agp_backend.h>
 #include <drm/drmP.h>
 
+#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && \
+                                             defined(MODULE)))
+
 struct drm_agp_head {
        struct agp_kern_info agp_info;
        struct list_head memory;