diff options
Diffstat (limited to 'drivers/gpu')
299 files changed, 659 insertions, 765 deletions
diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index 36164806b9d4..31123b6a0be5 100644 --- a/drivers/gpu/drm/ast/ast_drv.c +++ b/drivers/gpu/drm/ast/ast_drv.c | |||
@@ -28,9 +28,8 @@ | |||
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/console.h> | 29 | #include <linux/console.h> |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "drm_crtc_helper.h" | ||
34 | 33 | ||
35 | #include "ast_drv.h" | 34 | #include "ast_drv.h" |
36 | 35 | ||
diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h index 20a437f88780..5ccf984f063a 100644 --- a/drivers/gpu/drm/ast/ast_drv.h +++ b/drivers/gpu/drm/ast/ast_drv.h | |||
@@ -28,13 +28,13 @@ | |||
28 | #ifndef __AST_DRV_H__ | 28 | #ifndef __AST_DRV_H__ |
29 | #define __AST_DRV_H__ | 29 | #define __AST_DRV_H__ |
30 | 30 | ||
31 | #include "drm_fb_helper.h" | 31 | #include <drm/drm_fb_helper.h> |
32 | 32 | ||
33 | #include "ttm/ttm_bo_api.h" | 33 | #include <drm/ttm/ttm_bo_api.h> |
34 | #include "ttm/ttm_bo_driver.h" | 34 | #include <drm/ttm/ttm_bo_driver.h> |
35 | #include "ttm/ttm_placement.h" | 35 | #include <drm/ttm/ttm_placement.h> |
36 | #include "ttm/ttm_memory.h" | 36 | #include <drm/ttm/ttm_memory.h> |
37 | #include "ttm/ttm_module.h" | 37 | #include <drm/ttm/ttm_module.h> |
38 | 38 | ||
39 | #include <linux/i2c.h> | 39 | #include <linux/i2c.h> |
40 | #include <linux/i2c-algo-bit.h> | 40 | #include <linux/i2c-algo-bit.h> |
diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c index 2fc8e9e860b1..d9ec77959dff 100644 --- a/drivers/gpu/drm/ast/ast_fb.c +++ b/drivers/gpu/drm/ast/ast_fb.c | |||
@@ -37,10 +37,9 @@ | |||
37 | #include <linux/init.h> | 37 | #include <linux/init.h> |
38 | 38 | ||
39 | 39 | ||
40 | #include "drmP.h" | 40 | #include <drm/drmP.h> |
41 | #include "drm.h" | 41 | #include <drm/drm_crtc.h> |
42 | #include "drm_crtc.h" | 42 | #include <drm/drm_fb_helper.h> |
43 | #include "drm_fb_helper.h" | ||
44 | #include "ast_drv.h" | 43 | #include "ast_drv.h" |
45 | 44 | ||
46 | static void ast_dirty_update(struct ast_fbdev *afbdev, | 45 | static void ast_dirty_update(struct ast_fbdev *afbdev, |
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index 95ae55b8214b..f668e6cc0f7a 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c | |||
@@ -25,12 +25,12 @@ | |||
25 | /* | 25 | /* |
26 | * Authors: Dave Airlie <airlied@redhat.com> | 26 | * Authors: Dave Airlie <airlied@redhat.com> |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "ast_drv.h" | 29 | #include "ast_drv.h" |
30 | 30 | ||
31 | 31 | ||
32 | #include "drm_fb_helper.h" | 32 | #include <drm/drm_fb_helper.h> |
33 | #include "drm_crtc_helper.h" | 33 | #include <drm/drm_crtc_helper.h> |
34 | 34 | ||
35 | #include "ast_dram_tables.h" | 35 | #include "ast_dram_tables.h" |
36 | 36 | ||
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index e87f1ff223f4..7fc9f7272b56 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c | |||
@@ -28,9 +28,9 @@ | |||
28 | * Authors: Dave Airlie <airlied@redhat.com> | 28 | * Authors: Dave Airlie <airlied@redhat.com> |
29 | */ | 29 | */ |
30 | #include <linux/export.h> | 30 | #include <linux/export.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm_crtc.h" | 32 | #include <drm/drm_crtc.h> |
33 | #include "drm_crtc_helper.h" | 33 | #include <drm/drm_crtc_helper.h> |
34 | #include "ast_drv.h" | 34 | #include "ast_drv.h" |
35 | 35 | ||
36 | #include "ast_tables.h" | 36 | #include "ast_tables.h" |
diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c index 6edbee63b0cb..977cfb35837a 100644 --- a/drivers/gpu/drm/ast/ast_post.c +++ b/drivers/gpu/drm/ast/ast_post.c | |||
@@ -26,7 +26,7 @@ | |||
26 | * Authors: Dave Airlie <airlied@redhat.com> | 26 | * Authors: Dave Airlie <airlied@redhat.com> |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "ast_drv.h" | 30 | #include "ast_drv.h" |
31 | 31 | ||
32 | #include "ast_dram_tables.h" | 32 | #include "ast_dram_tables.h" |
diff --git a/drivers/gpu/drm/ast/ast_ttm.c b/drivers/gpu/drm/ast/ast_ttm.c index 6cf2adea66bc..1a026ac2dfb4 100644 --- a/drivers/gpu/drm/ast/ast_ttm.c +++ b/drivers/gpu/drm/ast/ast_ttm.c | |||
@@ -25,7 +25,7 @@ | |||
25 | /* | 25 | /* |
26 | * Authors: Dave Airlie <airlied@redhat.com> | 26 | * Authors: Dave Airlie <airlied@redhat.com> |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "ast_drv.h" | 29 | #include "ast_drv.h" |
30 | #include <ttm/ttm_page_alloc.h> | 30 | #include <ttm/ttm_page_alloc.h> |
31 | 31 | ||
diff --git a/drivers/gpu/drm/ati_pcigart.c b/drivers/gpu/drm/ati_pcigart.c index 9afe495c12c7..c399dea27a3b 100644 --- a/drivers/gpu/drm/ati_pcigart.c +++ b/drivers/gpu/drm/ati_pcigart.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include <linux/export.h> | 34 | #include <linux/export.h> |
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | 36 | ||
37 | # define ATI_PCIGART_PAGE_SIZE 4096 /**< PCI GART page size */ | 37 | # define ATI_PCIGART_PAGE_SIZE 4096 /**< PCI GART page size */ |
38 | 38 | ||
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c index b83a2d7ddd1a..101e423c8991 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.c +++ b/drivers/gpu/drm/cirrus/cirrus_drv.c | |||
@@ -10,8 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include <linux/console.h> | 12 | #include <linux/console.h> |
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | #include "drm.h" | ||
15 | 14 | ||
16 | #include "cirrus_drv.h" | 15 | #include "cirrus_drv.h" |
17 | 16 | ||
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.h b/drivers/gpu/drm/cirrus/cirrus_drv.h index 5d045647a3fc..6e0cc724e5a2 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.h +++ b/drivers/gpu/drm/cirrus/cirrus_drv.h | |||
@@ -15,11 +15,11 @@ | |||
15 | 15 | ||
16 | #include <drm/drm_fb_helper.h> | 16 | #include <drm/drm_fb_helper.h> |
17 | 17 | ||
18 | #include "ttm/ttm_bo_api.h" | 18 | #include <drm/ttm/ttm_bo_api.h> |
19 | #include "ttm/ttm_bo_driver.h" | 19 | #include <drm/ttm/ttm_bo_driver.h> |
20 | #include "ttm/ttm_placement.h" | 20 | #include <drm/ttm/ttm_placement.h> |
21 | #include "ttm/ttm_memory.h" | 21 | #include <drm/ttm/ttm_memory.h> |
22 | #include "ttm/ttm_module.h" | 22 | #include <drm/ttm/ttm_module.h> |
23 | 23 | ||
24 | #define DRIVER_AUTHOR "Matthew Garrett" | 24 | #define DRIVER_AUTHOR "Matthew Garrett" |
25 | 25 | ||
diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 9a276a536992..6c6b4c87d309 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c | |||
@@ -9,9 +9,8 @@ | |||
9 | * Dave Airlie | 9 | * Dave Airlie |
10 | */ | 10 | */ |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include "drmP.h" | 12 | #include <drm/drmP.h> |
13 | #include "drm.h" | 13 | #include <drm/drm_fb_helper.h> |
14 | #include "drm_fb_helper.h" | ||
15 | 14 | ||
16 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
17 | 16 | ||
diff --git a/drivers/gpu/drm/cirrus/cirrus_main.c b/drivers/gpu/drm/cirrus/cirrus_main.c index e3c122578417..6a9b12e88d46 100644 --- a/drivers/gpu/drm/cirrus/cirrus_main.c +++ b/drivers/gpu/drm/cirrus/cirrus_main.c | |||
@@ -8,9 +8,8 @@ | |||
8 | * Authors: Matthew Garrett | 8 | * Authors: Matthew Garrett |
9 | * Dave Airlie | 9 | * Dave Airlie |
10 | */ | 10 | */ |
11 | #include "drmP.h" | 11 | #include <drm/drmP.h> |
12 | #include "drm.h" | 12 | #include <drm/drm_crtc_helper.h> |
13 | #include "drm_crtc_helper.h" | ||
14 | 13 | ||
15 | #include "cirrus_drv.h" | 14 | #include "cirrus_drv.h" |
16 | 15 | ||
diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c index a44d31aa4e3c..60685b21cc36 100644 --- a/drivers/gpu/drm/cirrus/cirrus_mode.c +++ b/drivers/gpu/drm/cirrus/cirrus_mode.c | |||
@@ -14,9 +14,8 @@ | |||
14 | * | 14 | * |
15 | * Copyright 1999-2001 Jeff Garzik <jgarzik@pobox.com> | 15 | * Copyright 1999-2001 Jeff Garzik <jgarzik@pobox.com> |
16 | */ | 16 | */ |
17 | #include "drmP.h" | 17 | #include <drm/drmP.h> |
18 | #include "drm.h" | 18 | #include <drm/drm_crtc_helper.h> |
19 | #include "drm_crtc_helper.h" | ||
20 | 19 | ||
21 | #include <video/cirrus.h> | 20 | #include <video/cirrus.h> |
22 | 21 | ||
diff --git a/drivers/gpu/drm/cirrus/cirrus_ttm.c b/drivers/gpu/drm/cirrus/cirrus_ttm.c index 50e170f879de..bc83f835c830 100644 --- a/drivers/gpu/drm/cirrus/cirrus_ttm.c +++ b/drivers/gpu/drm/cirrus/cirrus_ttm.c | |||
@@ -25,7 +25,7 @@ | |||
25 | /* | 25 | /* |
26 | * Authors: Dave Airlie <airlied@redhat.com> | 26 | * Authors: Dave Airlie <airlied@redhat.com> |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "cirrus_drv.h" | 29 | #include "cirrus_drv.h" |
30 | #include <ttm/ttm_page_alloc.h> | 30 | #include <ttm/ttm_page_alloc.h> |
31 | 31 | ||
diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c index 0cb2ba50af53..3d8fed179797 100644 --- a/drivers/gpu/drm/drm_agpsupport.c +++ b/drivers/gpu/drm/drm_agpsupport.c | |||
@@ -31,7 +31,7 @@ | |||
31 | * OTHER DEALINGS IN THE SOFTWARE. | 31 | * OTHER DEALINGS IN THE SOFTWARE. |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include <linux/module.h> | 35 | #include <linux/module.h> |
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | 37 | ||
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c index ba23790450e9..3cedae12b3c1 100644 --- a/drivers/gpu/drm/drm_auth.c +++ b/drivers/gpu/drm/drm_auth.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * OTHER DEALINGS IN THE SOFTWARE. | 33 | * OTHER DEALINGS IN THE SOFTWARE. |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * Find the file with the given magic number. | 39 | * Find the file with the given magic number. |
diff --git a/drivers/gpu/drm/drm_buffer.c b/drivers/gpu/drm/drm_buffer.c index 08ccefedb327..39a718340319 100644 --- a/drivers/gpu/drm/drm_buffer.c +++ b/drivers/gpu/drm/drm_buffer.c | |||
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include <linux/export.h> | 35 | #include <linux/export.h> |
36 | #include "drm_buffer.h" | 36 | #include <drm/drm_buffer.h> |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * Allocate the drm buffer object. | 39 | * Allocate the drm buffer object. |
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index b356c719f2f1..0128147265f3 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu/drm/drm_bufs.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/log2.h> | 38 | #include <linux/log2.h> |
39 | #include <linux/export.h> | 39 | #include <linux/export.h> |
40 | #include <asm/shmparam.h> | 40 | #include <asm/shmparam.h> |
41 | #include "drmP.h" | 41 | #include <drm/drmP.h> |
42 | 42 | ||
43 | static struct drm_map_list *drm_find_matching_map(struct drm_device *dev, | 43 | static struct drm_map_list *drm_find_matching_map(struct drm_device *dev, |
44 | struct drm_local_map *map) | 44 | struct drm_local_map *map) |
diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index 4a4274b348b6..a575cb2e6bdb 100644 --- a/drivers/gpu/drm/drm_cache.c +++ b/drivers/gpu/drm/drm_cache.c | |||
@@ -29,7 +29,7 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <linux/export.h> | 31 | #include <linux/export.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | 33 | ||
34 | #if defined(CONFIG_X86) | 34 | #if defined(CONFIG_X86) |
35 | static void | 35 | static void |
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c index affa629589ac..45adf97e678f 100644 --- a/drivers/gpu/drm/drm_context.c +++ b/drivers/gpu/drm/drm_context.c | |||
@@ -40,7 +40,7 @@ | |||
40 | * needed by SiS driver's memory management. | 40 | * needed by SiS driver's memory management. |
41 | */ | 41 | */ |
42 | 42 | ||
43 | #include "drmP.h" | 43 | #include <drm/drmP.h> |
44 | 44 | ||
45 | /******************************************************************/ | 45 | /******************************************************************/ |
46 | /** \name Context bitmap support */ | 46 | /** \name Context bitmap support */ |
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 9c346a50379f..ef1b22144d37 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -32,11 +32,10 @@ | |||
32 | #include <linux/list.h> | 32 | #include <linux/list.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | #include <linux/export.h> | 34 | #include <linux/export.h> |
35 | #include "drm.h" | 35 | #include <drm/drmP.h> |
36 | #include "drmP.h" | 36 | #include <drm/drm_crtc.h> |
37 | #include "drm_crtc.h" | 37 | #include <drm/drm_edid.h> |
38 | #include "drm_edid.h" | 38 | #include <drm/drm_fourcc.h> |
39 | #include "drm_fourcc.h" | ||
40 | 39 | ||
41 | /* Avoid boilerplate. I'm tired of typing. */ | 40 | /* Avoid boilerplate. I'm tired of typing. */ |
42 | #define DRM_ENUM_NAME_FN(fnname, list) \ | 41 | #define DRM_ENUM_NAME_FN(fnname, list) \ |
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 3252e7067d8b..1227adf74dbc 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -32,12 +32,12 @@ | |||
32 | #include <linux/export.h> | 32 | #include <linux/export.h> |
33 | #include <linux/moduleparam.h> | 33 | #include <linux/moduleparam.h> |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm_crtc.h" | 36 | #include <drm/drm_crtc.h> |
37 | #include "drm_fourcc.h" | 37 | #include <drm/drm_fourcc.h> |
38 | #include "drm_crtc_helper.h" | 38 | #include <drm/drm_crtc_helper.h> |
39 | #include "drm_fb_helper.h" | 39 | #include <drm/drm_fb_helper.h> |
40 | #include "drm_edid.h" | 40 | #include <drm/drm_edid.h> |
41 | 41 | ||
42 | static bool drm_kms_helper_poll = true; | 42 | static bool drm_kms_helper_poll = true; |
43 | module_param_named(poll, drm_kms_helper_poll, bool, 0600); | 43 | module_param_named(poll, drm_kms_helper_poll, bool, 0600); |
@@ -968,7 +968,7 @@ static void output_poll_execute(struct work_struct *work) | |||
968 | } | 968 | } |
969 | 969 | ||
970 | if (repoll) | 970 | if (repoll) |
971 | queue_delayed_work(system_nrt_wq, delayed_work, DRM_OUTPUT_POLL_PERIOD); | 971 | schedule_delayed_work(delayed_work, DRM_OUTPUT_POLL_PERIOD); |
972 | } | 972 | } |
973 | 973 | ||
974 | void drm_kms_helper_poll_disable(struct drm_device *dev) | 974 | void drm_kms_helper_poll_disable(struct drm_device *dev) |
@@ -993,7 +993,7 @@ void drm_kms_helper_poll_enable(struct drm_device *dev) | |||
993 | } | 993 | } |
994 | 994 | ||
995 | if (poll) | 995 | if (poll) |
996 | queue_delayed_work(system_nrt_wq, &dev->mode_config.output_poll_work, DRM_OUTPUT_POLL_PERIOD); | 996 | schedule_delayed_work(&dev->mode_config.output_poll_work, DRM_OUTPUT_POLL_PERIOD); |
997 | } | 997 | } |
998 | EXPORT_SYMBOL(drm_kms_helper_poll_enable); | 998 | EXPORT_SYMBOL(drm_kms_helper_poll_enable); |
999 | 999 | ||
@@ -1020,6 +1020,6 @@ void drm_helper_hpd_irq_event(struct drm_device *dev) | |||
1020 | /* kill timer and schedule immediate execution, this doesn't block */ | 1020 | /* kill timer and schedule immediate execution, this doesn't block */ |
1021 | cancel_delayed_work(&dev->mode_config.output_poll_work); | 1021 | cancel_delayed_work(&dev->mode_config.output_poll_work); |
1022 | if (drm_kms_helper_poll) | 1022 | if (drm_kms_helper_poll) |
1023 | queue_delayed_work(system_nrt_wq, &dev->mode_config.output_poll_work, 0); | 1023 | schedule_delayed_work(&dev->mode_config.output_poll_work, 0); |
1024 | } | 1024 | } |
1025 | EXPORT_SYMBOL(drm_helper_hpd_irq_event); | 1025 | EXPORT_SYMBOL(drm_helper_hpd_irq_event); |
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 70b13fc19396..a05087cf846d 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <linux/seq_file.h> | 34 | #include <linux/seq_file.h> |
35 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
36 | #include <linux/export.h> | 36 | #include <linux/export.h> |
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | 38 | ||
39 | #if defined(CONFIG_DEBUG_FS) | 39 | #if defined(CONFIG_DEBUG_FS) |
40 | 40 | ||
diff --git a/drivers/gpu/drm/drm_dma.c b/drivers/gpu/drm/drm_dma.c index 08f5e5309b22..495b5fd2787c 100644 --- a/drivers/gpu/drm/drm_dma.c +++ b/drivers/gpu/drm/drm_dma.c | |||
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/export.h> | 36 | #include <linux/export.h> |
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Initialize the DMA data. | 40 | * Initialize the DMA data. |
diff --git a/drivers/gpu/drm/drm_dp_i2c_helper.c b/drivers/gpu/drm/drm_dp_i2c_helper.c index f7eba0a0973a..7f246f212457 100644 --- a/drivers/gpu/drm/drm_dp_i2c_helper.c +++ b/drivers/gpu/drm/drm_dp_i2c_helper.c | |||
@@ -27,8 +27,8 @@ | |||
27 | #include <linux/errno.h> | 27 | #include <linux/errno.h> |
28 | #include <linux/sched.h> | 28 | #include <linux/sched.h> |
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include "drm_dp_helper.h" | 30 | #include <drm/drm_dp_helper.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | 32 | ||
33 | /* Run a single AUX_CH I2C transaction, writing/reading data as necessary */ | 33 | /* Run a single AUX_CH I2C transaction, writing/reading data as necessary */ |
34 | static int | 34 | static int |
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index a2c6eb6e0dd8..be174cab105a 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c | |||
@@ -49,8 +49,8 @@ | |||
49 | #include <linux/debugfs.h> | 49 | #include <linux/debugfs.h> |
50 | #include <linux/slab.h> | 50 | #include <linux/slab.h> |
51 | #include <linux/export.h> | 51 | #include <linux/export.h> |
52 | #include "drmP.h" | 52 | #include <drm/drmP.h> |
53 | #include "drm_core.h" | 53 | #include <drm/drm_core.h> |
54 | 54 | ||
55 | 55 | ||
56 | static int drm_version(struct drm_device *dev, void *data, | 56 | static int drm_version(struct drm_device *dev, void *data, |
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 289c9b18c0d3..5dda07cf7097 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
32 | #include <linux/i2c.h> | 32 | #include <linux/i2c.h> |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm_edid.h" | 35 | #include <drm/drm_edid.h> |
36 | #include "drm_edid_modes.h" | 36 | #include "drm_edid_modes.h" |
37 | 37 | ||
38 | #define version_greater(edid, maj, min) \ | 38 | #define version_greater(edid, maj, min) \ |
diff --git a/drivers/gpu/drm/drm_edid_load.c b/drivers/gpu/drm/drm_edid_load.c index ea9cdab3d431..38d3943f72de 100644 --- a/drivers/gpu/drm/drm_edid_load.c +++ b/drivers/gpu/drm/drm_edid_load.c | |||
@@ -21,10 +21,10 @@ | |||
21 | 21 | ||
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/firmware.h> | 23 | #include <linux/firmware.h> |
24 | #include "drmP.h" | 24 | #include <drm/drmP.h> |
25 | #include "drm_crtc.h" | 25 | #include <drm/drm_crtc.h> |
26 | #include "drm_crtc_helper.h" | 26 | #include <drm/drm_crtc_helper.h> |
27 | #include "drm_edid.h" | 27 | #include <drm/drm_edid.h> |
28 | 28 | ||
29 | static char edid_firmware[PATH_MAX]; | 29 | static char edid_firmware[PATH_MAX]; |
30 | module_param_string(edid_firmware, edid_firmware, sizeof(edid_firmware), 0644); | 30 | module_param_string(edid_firmware, edid_firmware, sizeof(edid_firmware), 0644); |
diff --git a/drivers/gpu/drm/drm_edid_modes.h b/drivers/gpu/drm/drm_edid_modes.h index 57459b316adc..5dbf7d2557b4 100644 --- a/drivers/gpu/drm/drm_edid_modes.h +++ b/drivers/gpu/drm/drm_edid_modes.h | |||
@@ -24,8 +24,8 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_edid.h" | 28 | #include <drm/drm_edid.h> |
29 | 29 | ||
30 | /* | 30 | /* |
31 | * Autogenerated from the DMT spec. | 31 | * Autogenerated from the DMT spec. |
diff --git a/drivers/gpu/drm/drm_encoder_slave.c b/drivers/gpu/drm/drm_encoder_slave.c index fb943551060e..63e733408b6d 100644 --- a/drivers/gpu/drm/drm_encoder_slave.c +++ b/drivers/gpu/drm/drm_encoder_slave.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | 28 | ||
29 | #include "drm_encoder_slave.h" | 29 | #include <drm/drm_encoder_slave.h> |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * drm_i2c_encoder_init - Initialize an I2C slave encoder | 32 | * drm_i2c_encoder_init - Initialize an I2C slave encoder |
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index b5d05f58c15a..4d58d7e6af3f 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c | |||
@@ -32,10 +32,10 @@ | |||
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/fb.h> | 33 | #include <linux/fb.h> |
34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm_crtc.h" | 36 | #include <drm/drm_crtc.h> |
37 | #include "drm_fb_helper.h" | 37 | #include <drm/drm_fb_helper.h> |
38 | #include "drm_crtc_helper.h" | 38 | #include <drm/drm_crtc_helper.h> |
39 | 39 | ||
40 | MODULE_AUTHOR("David Airlie, Jesse Barnes"); | 40 | MODULE_AUTHOR("David Airlie, Jesse Barnes"); |
41 | MODULE_DESCRIPTION("DRM KMS helper"); | 41 | MODULE_DESCRIPTION("DRM KMS helper"); |
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c index 5062eec673f1..7ef1b673e1be 100644 --- a/drivers/gpu/drm/drm_fops.c +++ b/drivers/gpu/drm/drm_fops.c | |||
@@ -34,7 +34,7 @@ | |||
34 | * OTHER DEALINGS IN THE SOFTWARE. | 34 | * OTHER DEALINGS IN THE SOFTWARE. |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | #include <linux/poll.h> | 38 | #include <linux/poll.h> |
39 | #include <linux/slab.h> | 39 | #include <linux/slab.h> |
40 | #include <linux/module.h> | 40 | #include <linux/module.h> |
@@ -251,7 +251,7 @@ static int drm_open_helper(struct inode *inode, struct file *filp, | |||
251 | filp->private_data = priv; | 251 | filp->private_data = priv; |
252 | priv->filp = filp; | 252 | priv->filp = filp; |
253 | priv->uid = current_euid(); | 253 | priv->uid = current_euid(); |
254 | priv->pid = task_pid_nr(current); | 254 | priv->pid = get_pid(task_pid(current)); |
255 | priv->minor = idr_find(&drm_minors_idr, minor_id); | 255 | priv->minor = idr_find(&drm_minors_idr, minor_id); |
256 | priv->ioctl_count = 0; | 256 | priv->ioctl_count = 0; |
257 | /* for compatibility root is always authenticated */ | 257 | /* for compatibility root is always authenticated */ |
@@ -524,6 +524,7 @@ int drm_release(struct inode *inode, struct file *filp) | |||
524 | if (drm_core_check_feature(dev, DRIVER_PRIME)) | 524 | if (drm_core_check_feature(dev, DRIVER_PRIME)) |
525 | drm_prime_destroy_file_private(&file_priv->prime); | 525 | drm_prime_destroy_file_private(&file_priv->prime); |
526 | 526 | ||
527 | put_pid(file_priv->pid); | ||
527 | kfree(file_priv); | 528 | kfree(file_priv); |
528 | 529 | ||
529 | /* ======================================================== | 530 | /* ======================================================== |
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index fbe0842038b5..92177d5aedee 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/pagemap.h> | 36 | #include <linux/pagemap.h> |
37 | #include <linux/shmem_fs.h> | 37 | #include <linux/shmem_fs.h> |
38 | #include <linux/dma-buf.h> | 38 | #include <linux/dma-buf.h> |
39 | #include "drmP.h" | 39 | #include <drm/drmP.h> |
40 | 40 | ||
41 | /** @file drm_gem.c | 41 | /** @file drm_gem.c |
42 | * | 42 | * |
diff --git a/drivers/gpu/drm/drm_global.c b/drivers/gpu/drm/drm_global.c index c87dc96444de..f7311162a61d 100644 --- a/drivers/gpu/drm/drm_global.c +++ b/drivers/gpu/drm/drm_global.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/mutex.h> | 31 | #include <linux/mutex.h> |
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include "drm_global.h" | 34 | #include <drm/drm_global.h> |
35 | 35 | ||
36 | struct drm_global_item { | 36 | struct drm_global_item { |
37 | struct mutex mutex; | 37 | struct mutex mutex; |
diff --git a/drivers/gpu/drm/drm_hashtab.c b/drivers/gpu/drm/drm_hashtab.c index 68dc8744b630..c3745c4d46d8 100644 --- a/drivers/gpu/drm/drm_hashtab.c +++ b/drivers/gpu/drm/drm_hashtab.c | |||
@@ -32,8 +32,8 @@ | |||
32 | * Thomas Hellström <thomas-at-tungstengraphics-dot-com> | 32 | * Thomas Hellström <thomas-at-tungstengraphics-dot-com> |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm_hashtab.h" | 36 | #include <drm/drm_hashtab.h> |
37 | #include <linux/hash.h> | 37 | #include <linux/hash.h> |
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | #include <linux/export.h> | 39 | #include <linux/export.h> |
diff --git a/drivers/gpu/drm/drm_info.c b/drivers/gpu/drm/drm_info.c index 8928edbb94c7..cdf8b1e7602d 100644 --- a/drivers/gpu/drm/drm_info.c +++ b/drivers/gpu/drm/drm_info.c | |||
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/seq_file.h> | 36 | #include <linux/seq_file.h> |
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * Called when "/proc/dri/.../name" is read. | 40 | * Called when "/proc/dri/.../name" is read. |
@@ -191,8 +191,9 @@ int drm_clients_info(struct seq_file *m, void *data) | |||
191 | seq_printf(m, "%c %3d %5d %5d %10u %10lu\n", | 191 | seq_printf(m, "%c %3d %5d %5d %10u %10lu\n", |
192 | priv->authenticated ? 'y' : 'n', | 192 | priv->authenticated ? 'y' : 'n', |
193 | priv->minor->index, | 193 | priv->minor->index, |
194 | priv->pid, | 194 | pid_vnr(priv->pid), |
195 | priv->uid, priv->magic, priv->ioctl_count); | 195 | from_kuid_munged(seq_user_ns(m), priv->uid), |
196 | priv->magic, priv->ioctl_count); | ||
196 | } | 197 | } |
197 | mutex_unlock(&dev->struct_mutex); | 198 | mutex_unlock(&dev->struct_mutex); |
198 | return 0; | 199 | return 0; |
diff --git a/drivers/gpu/drm/drm_ioc32.c b/drivers/gpu/drm/drm_ioc32.c index 637fcc3766c7..2f4c4343dfa3 100644 --- a/drivers/gpu/drm/drm_ioc32.c +++ b/drivers/gpu/drm/drm_ioc32.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include <linux/ratelimit.h> | 31 | #include <linux/ratelimit.h> |
32 | #include <linux/export.h> | 32 | #include <linux/export.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm_core.h" | 35 | #include <drm/drm_core.h> |
36 | 36 | ||
37 | #define DRM_IOCTL_VERSION32 DRM_IOWR(0x00, drm_version32_t) | 37 | #define DRM_IOCTL_VERSION32 DRM_IOWR(0x00, drm_version32_t) |
38 | #define DRM_IOCTL_GET_UNIQUE32 DRM_IOWR(0x01, drm_unique32_t) | 38 | #define DRM_IOCTL_GET_UNIQUE32 DRM_IOWR(0x01, drm_unique32_t) |
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c index 64a62c697313..23dd97506f28 100644 --- a/drivers/gpu/drm/drm_ioctl.c +++ b/drivers/gpu/drm/drm_ioctl.c | |||
@@ -33,11 +33,11 @@ | |||
33 | * OTHER DEALINGS IN THE SOFTWARE. | 33 | * OTHER DEALINGS IN THE SOFTWARE. |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | #include "drm_core.h" | 37 | #include <drm/drm_core.h> |
38 | 38 | ||
39 | #include "linux/pci.h" | 39 | #include <linux/pci.h> |
40 | #include "linux/export.h" | 40 | #include <linux/export.h> |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * Get the bus id. | 43 | * Get the bus id. |
@@ -215,8 +215,8 @@ int drm_getclient(struct drm_device *dev, void *data, | |||
215 | list_for_each_entry(pt, &dev->filelist, lhead) { | 215 | list_for_each_entry(pt, &dev->filelist, lhead) { |
216 | if (i++ >= idx) { | 216 | if (i++ >= idx) { |
217 | client->auth = pt->authenticated; | 217 | client->auth = pt->authenticated; |
218 | client->pid = pt->pid; | 218 | client->pid = pid_vnr(pt->pid); |
219 | client->uid = pt->uid; | 219 | client->uid = from_kuid_munged(current_user_ns(), pt->uid); |
220 | client->magic = pt->magic; | 220 | client->magic = pt->magic; |
221 | client->iocs = pt->ioctl_count; | 221 | client->iocs = pt->ioctl_count; |
222 | mutex_unlock(&dev->struct_mutex); | 222 | mutex_unlock(&dev->struct_mutex); |
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 076c4a86ff84..3a3d0ce891b9 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * OTHER DEALINGS IN THE SOFTWARE. | 33 | * OTHER DEALINGS IN THE SOFTWARE. |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | #include "drm_trace.h" | 37 | #include "drm_trace.h" |
38 | 38 | ||
39 | #include <linux/interrupt.h> /* For task queue support */ | 39 | #include <linux/interrupt.h> /* For task queue support */ |
diff --git a/drivers/gpu/drm/drm_lock.c b/drivers/gpu/drm/drm_lock.c index 32039553e172..d752c96d6090 100644 --- a/drivers/gpu/drm/drm_lock.c +++ b/drivers/gpu/drm/drm_lock.c | |||
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/export.h> | 36 | #include <linux/export.h> |
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | 38 | ||
39 | static int drm_notifier(void *priv); | 39 | static int drm_notifier(void *priv); |
40 | 40 | ||
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c index c86a0f1a435c..126d50ea181f 100644 --- a/drivers/gpu/drm/drm_memory.c +++ b/drivers/gpu/drm/drm_memory.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #include <linux/highmem.h> | 36 | #include <linux/highmem.h> |
37 | #include <linux/export.h> | 37 | #include <linux/export.h> |
38 | #include "drmP.h" | 38 | #include <drm/drmP.h> |
39 | 39 | ||
40 | #if __OS_HAS_AGP | 40 | #if __OS_HAS_AGP |
41 | static void *agp_remap(unsigned long offset, unsigned long size, | 41 | static void *agp_remap(unsigned long offset, unsigned long size, |
diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index 9bb82f7f0061..0761a03cdbb2 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/drivers/gpu/drm/drm_mm.c | |||
@@ -41,8 +41,8 @@ | |||
41 | * Thomas Hellström <thomas-at-tungstengraphics-dot-com> | 41 | * Thomas Hellström <thomas-at-tungstengraphics-dot-com> |
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "drmP.h" | 44 | #include <drm/drmP.h> |
45 | #include "drm_mm.h" | 45 | #include <drm/drm_mm.h> |
46 | #include <linux/slab.h> | 46 | #include <linux/slab.h> |
47 | #include <linux/seq_file.h> | 47 | #include <linux/seq_file.h> |
48 | #include <linux/export.h> | 48 | #include <linux/export.h> |
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 28637c181b15..59450f39bf96 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -33,9 +33,8 @@ | |||
33 | #include <linux/list.h> | 33 | #include <linux/list.h> |
34 | #include <linux/list_sort.h> | 34 | #include <linux/list_sort.h> |
35 | #include <linux/export.h> | 35 | #include <linux/export.h> |
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | #include "drm.h" | 37 | #include <drm/drm_crtc.h> |
38 | #include "drm_crtc.h" | ||
39 | 38 | ||
40 | /** | 39 | /** |
41 | * drm_mode_debug_printmodeline - debug print a mode | 40 | * drm_mode_debug_printmodeline - debug print a mode |
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 5320364582ce..ba33144257e5 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <linux/slab.h> | 40 | #include <linux/slab.h> |
41 | #include <linux/dma-mapping.h> | 41 | #include <linux/dma-mapping.h> |
42 | #include <linux/export.h> | 42 | #include <linux/export.h> |
43 | #include "drmP.h" | 43 | #include <drm/drmP.h> |
44 | 44 | ||
45 | /**********************************************************************/ | 45 | /**********************************************************************/ |
46 | /** \name PCI memory */ | 46 | /** \name PCI memory */ |
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c index 82431dcae37b..aaeb6f8d69ce 100644 --- a/drivers/gpu/drm/drm_platform.c +++ b/drivers/gpu/drm/drm_platform.c | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include <linux/export.h> | 28 | #include <linux/export.h> |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Register. | 32 | * Register. |
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index f546ff98a114..7f125738f44e 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #include <linux/export.h> | 29 | #include <linux/export.h> |
30 | #include <linux/dma-buf.h> | 30 | #include <linux/dma-buf.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | 32 | ||
33 | /* | 33 | /* |
34 | * DMA-BUF/GEM Object references and lifetime overview: | 34 | * DMA-BUF/GEM Object references and lifetime overview: |
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c index da457b18eaaf..ff5456b7df72 100644 --- a/drivers/gpu/drm/drm_proc.c +++ b/drivers/gpu/drm/drm_proc.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <linux/seq_file.h> | 40 | #include <linux/seq_file.h> |
41 | #include <linux/slab.h> | 41 | #include <linux/slab.h> |
42 | #include <linux/export.h> | 42 | #include <linux/export.h> |
43 | #include "drmP.h" | 43 | #include <drm/drmP.h> |
44 | 44 | ||
45 | /*************************************************** | 45 | /*************************************************** |
46 | * Initialization, etc. | 46 | * Initialization, etc. |
diff --git a/drivers/gpu/drm/drm_scatter.c b/drivers/gpu/drm/drm_scatter.c index 7525e0311e59..d87f60bbc330 100644 --- a/drivers/gpu/drm/drm_scatter.c +++ b/drivers/gpu/drm/drm_scatter.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | #include <linux/vmalloc.h> | 34 | #include <linux/vmalloc.h> |
35 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | 37 | ||
38 | #define DEBUG_SCATTER 0 | 38 | #define DEBUG_SCATTER 0 |
39 | 39 | ||
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 21bcd4a555d8..c236fd27eba6 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -34,8 +34,8 @@ | |||
34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
35 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | #include "drm_core.h" | 38 | #include <drm/drm_core.h> |
39 | 39 | ||
40 | unsigned int drm_debug = 0; /* 1 to enable debug output */ | 40 | unsigned int drm_debug = 0; /* 1 to enable debug output */ |
41 | EXPORT_SYMBOL(drm_debug); | 41 | EXPORT_SYMBOL(drm_debug); |
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 45ac8d6c92b7..05cd8fe062af 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c | |||
@@ -18,9 +18,9 @@ | |||
18 | #include <linux/err.h> | 18 | #include <linux/err.h> |
19 | #include <linux/export.h> | 19 | #include <linux/export.h> |
20 | 20 | ||
21 | #include "drm_sysfs.h" | 21 | #include <drm/drm_sysfs.h> |
22 | #include "drm_core.h" | 22 | #include <drm/drm_core.h> |
23 | #include "drmP.h" | 23 | #include <drm/drmP.h> |
24 | 24 | ||
25 | #define to_drm_minor(d) container_of(d, struct drm_minor, kdev) | 25 | #define to_drm_minor(d) container_of(d, struct drm_minor, kdev) |
26 | #define to_drm_connector(d) container_of(d, struct drm_connector, kdev) | 26 | #define to_drm_connector(d) container_of(d, struct drm_connector, kdev) |
diff --git a/drivers/gpu/drm/drm_trace_points.c b/drivers/gpu/drm/drm_trace_points.c index 0d0eb90864ae..3bbc4deb4dbc 100644 --- a/drivers/gpu/drm/drm_trace_points.c +++ b/drivers/gpu/drm/drm_trace_points.c | |||
@@ -1,4 +1,4 @@ | |||
1 | #include "drmP.h" | 1 | #include <drm/drmP.h> |
2 | 2 | ||
3 | #define CREATE_TRACE_POINTS | 3 | #define CREATE_TRACE_POINTS |
4 | #include "drm_trace.h" | 4 | #include "drm_trace.h" |
diff --git a/drivers/gpu/drm/drm_usb.c b/drivers/gpu/drm/drm_usb.c index 37c9a523dd1c..3cec30611417 100644 --- a/drivers/gpu/drm/drm_usb.c +++ b/drivers/gpu/drm/drm_usb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | #include "drmP.h" | 1 | #include <drm/drmP.h> |
2 | #include <linux/usb.h> | 2 | #include <linux/usb.h> |
3 | #include <linux/module.h> | 3 | #include <linux/module.h> |
4 | 4 | ||
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 6fed21502313..23a824e6a22a 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c | |||
@@ -33,7 +33,7 @@ | |||
33 | * OTHER DEALINGS IN THE SOFTWARE. | 33 | * OTHER DEALINGS IN THE SOFTWARE. |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | #include <linux/export.h> | 37 | #include <linux/export.h> |
38 | #if defined(__ia64__) | 38 | #if defined(__ia64__) |
39 | #include <linux/efi.h> | 39 | #include <linux/efi.h> |
diff --git a/drivers/gpu/drm/exynos/exynos_ddc.c b/drivers/gpu/drm/exynos/exynos_ddc.c index 7e1051d07f1f..961a1806a246 100644 --- a/drivers/gpu/drm/exynos/exynos_ddc.c +++ b/drivers/gpu/drm/exynos/exynos_ddc.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "drmP.h" | 14 | #include <drm/drmP.h> |
15 | 15 | ||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c index b3cb0a69fbf2..118c117b3226 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_buf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c | |||
@@ -23,9 +23,8 @@ | |||
23 | * OTHER DEALINGS IN THE SOFTWARE. | 23 | * OTHER DEALINGS IN THE SOFTWARE. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm.h" | 27 | #include <drm/exynos_drm.h> |
28 | #include "exynos_drm.h" | ||
29 | 28 | ||
30 | #include "exynos_drm_drv.h" | 29 | #include "exynos_drm_drv.h" |
31 | #include "exynos_drm_gem.h" | 30 | #include "exynos_drm_gem.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_connector.c b/drivers/gpu/drm/exynos/exynos_drm_connector.c index 9dce3b9c3896..c2b1b1441ed0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_connector.c +++ b/drivers/gpu/drm/exynos/exynos_drm_connector.c | |||
@@ -25,8 +25,8 @@ | |||
25 | * OTHER DEALINGS IN THE SOFTWARE. | 25 | * OTHER DEALINGS IN THE SOFTWARE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm_crtc_helper.h" | 29 | #include <drm/drm_crtc_helper.h> |
30 | 30 | ||
31 | #include <drm/exynos_drm.h> | 31 | #include <drm/exynos_drm.h> |
32 | #include "exynos_drm_drv.h" | 32 | #include "exynos_drm_drv.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_core.c b/drivers/gpu/drm/exynos/exynos_drm_core.c index 84dd099eae3b..19bdf0a194eb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_core.c +++ b/drivers/gpu/drm/exynos/exynos_drm_core.c | |||
@@ -26,7 +26,7 @@ | |||
26 | * OTHER DEALINGS IN THE SOFTWARE. | 26 | * OTHER DEALINGS IN THE SOFTWARE. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "exynos_drm_drv.h" | 30 | #include "exynos_drm_drv.h" |
31 | #include "exynos_drm_encoder.h" | 31 | #include "exynos_drm_encoder.h" |
32 | #include "exynos_drm_connector.h" | 32 | #include "exynos_drm_connector.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index abb1e2f8227f..df1e34f0f091 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c | |||
@@ -26,8 +26,8 @@ | |||
26 | * OTHER DEALINGS IN THE SOFTWARE. | 26 | * OTHER DEALINGS IN THE SOFTWARE. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm_crtc_helper.h" | 30 | #include <drm/drm_crtc_helper.h> |
31 | 31 | ||
32 | #include "exynos_drm_drv.h" | 32 | #include "exynos_drm_drv.h" |
33 | #include "exynos_drm_encoder.h" | 33 | #include "exynos_drm_encoder.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c index ae13febe0eaa..fae1f2ec886c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | |||
@@ -23,9 +23,8 @@ | |||
23 | * OTHER DEALINGS IN THE SOFTWARE. | 23 | * OTHER DEALINGS IN THE SOFTWARE. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm.h" | 27 | #include <drm/exynos_drm.h> |
28 | #include "exynos_drm.h" | ||
29 | #include "exynos_drm_drv.h" | 28 | #include "exynos_drm_drv.h" |
30 | #include "exynos_drm_gem.h" | 29 | #include "exynos_drm_gem.h" |
31 | 30 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index d07071937453..1de7baafddd0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c | |||
@@ -25,9 +25,8 @@ | |||
25 | * OTHER DEALINGS IN THE SOFTWARE. | 25 | * OTHER DEALINGS IN THE SOFTWARE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm.h" | 29 | #include <drm/drm_crtc_helper.h> |
30 | #include "drm_crtc_helper.h" | ||
31 | 30 | ||
32 | #include <drm/exynos_drm.h> | 31 | #include <drm/exynos_drm.h> |
33 | 32 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index e22704b249d7..a4ab98b52dd8 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h | |||
@@ -30,7 +30,6 @@ | |||
30 | #define _EXYNOS_DRM_DRV_H_ | 30 | #define _EXYNOS_DRM_DRV_H_ |
31 | 31 | ||
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | #include "drm.h" | ||
34 | 33 | ||
35 | #define MAX_CRTC 3 | 34 | #define MAX_CRTC 3 |
36 | #define MAX_PLANE 5 | 35 | #define MAX_PLANE 5 |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c index 2c037cd7d2d4..39bd8abff3f1 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c +++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c | |||
@@ -26,8 +26,8 @@ | |||
26 | * OTHER DEALINGS IN THE SOFTWARE. | 26 | * OTHER DEALINGS IN THE SOFTWARE. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm_crtc_helper.h" | 30 | #include <drm/drm_crtc_helper.h> |
31 | 31 | ||
32 | #include "exynos_drm_drv.h" | 32 | #include "exynos_drm_drv.h" |
33 | #include "exynos_drm_encoder.h" | 33 | #include "exynos_drm_encoder.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c index 4ccfe4328fab..53afcc5f0945 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fb.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c | |||
@@ -26,10 +26,10 @@ | |||
26 | * OTHER DEALINGS IN THE SOFTWARE. | 26 | * OTHER DEALINGS IN THE SOFTWARE. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm_crtc.h" | 30 | #include <drm/drm_crtc.h> |
31 | #include "drm_crtc_helper.h" | 31 | #include <drm/drm_crtc_helper.h> |
32 | #include "drm_fb_helper.h" | 32 | #include <drm/drm_fb_helper.h> |
33 | 33 | ||
34 | #include "exynos_drm_drv.h" | 34 | #include "exynos_drm_drv.h" |
35 | #include "exynos_drm_fb.h" | 35 | #include "exynos_drm_fb.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index f4ac43356583..bd4ff6348239 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c | |||
@@ -26,10 +26,10 @@ | |||
26 | * OTHER DEALINGS IN THE SOFTWARE. | 26 | * OTHER DEALINGS IN THE SOFTWARE. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm_crtc.h" | 30 | #include <drm/drm_crtc.h> |
31 | #include "drm_fb_helper.h" | 31 | #include <drm/drm_fb_helper.h> |
32 | #include "drm_crtc_helper.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | 33 | ||
34 | #include "exynos_drm_drv.h" | 34 | #include "exynos_drm_drv.h" |
35 | #include "exynos_drm_fb.h" | 35 | #include "exynos_drm_fb.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index b19cd93e7047..58d50e368a58 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * option) any later version. | 11 | * option) any later version. |
12 | * | 12 | * |
13 | */ | 13 | */ |
14 | #include "drmP.h" | 14 | #include <drm/drmP.h> |
15 | 15 | ||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 1065e90d0919..bc2a2e9be8eb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c | |||
@@ -18,8 +18,8 @@ | |||
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <linux/workqueue.h> | 19 | #include <linux/workqueue.h> |
20 | 20 | ||
21 | #include "drmP.h" | 21 | #include <drm/drmP.h> |
22 | #include "exynos_drm.h" | 22 | #include <drm/exynos_drm.h> |
23 | #include "exynos_drm_drv.h" | 23 | #include "exynos_drm_drv.h" |
24 | #include "exynos_drm_gem.h" | 24 | #include "exynos_drm_gem.h" |
25 | 25 | ||
@@ -878,7 +878,7 @@ static int g2d_suspend(struct device *dev) | |||
878 | /* FIXME: good range? */ | 878 | /* FIXME: good range? */ |
879 | usleep_range(500, 1000); | 879 | usleep_range(500, 1000); |
880 | 880 | ||
881 | flush_work_sync(&g2d->runqueue_work); | 881 | flush_work(&g2d->runqueue_work); |
882 | 882 | ||
883 | return 0; | 883 | return 0; |
884 | } | 884 | } |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index a38051c95ec4..fcdbe46914f7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c | |||
@@ -23,8 +23,7 @@ | |||
23 | * OTHER DEALINGS IN THE SOFTWARE. | 23 | * OTHER DEALINGS IN THE SOFTWARE. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm.h" | ||
28 | 27 | ||
29 | #include <linux/shmem_fs.h> | 28 | #include <linux/shmem_fs.h> |
30 | #include <drm/exynos_drm.h> | 29 | #include <drm/exynos_drm.h> |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_hdmi.c b/drivers/gpu/drm/exynos/exynos_drm_hdmi.c index 3fdf0b65f47e..c3d3a5e4f109 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_hdmi.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "drmP.h" | 14 | #include <drm/drmP.h> |
15 | 15 | ||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/wait.h> | 17 | #include <linux/wait.h> |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c index e1f94b746bd7..03b472b43013 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c | |||
@@ -9,9 +9,9 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "drmP.h" | 12 | #include <drm/drmP.h> |
13 | 13 | ||
14 | #include "exynos_drm.h" | 14 | #include <drm/exynos_drm.h> |
15 | #include "exynos_drm_drv.h" | 15 | #include "exynos_drm_drv.h" |
16 | #include "exynos_drm_encoder.h" | 16 | #include "exynos_drm_encoder.h" |
17 | #include "exynos_drm_fb.h" | 17 | #include "exynos_drm_fb.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index e364165f1a2a..8fe431ae537b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c | |||
@@ -10,7 +10,7 @@ | |||
10 | * option) any later version. | 10 | * option) any later version. |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
@@ -18,8 +18,8 @@ | |||
18 | 18 | ||
19 | #include <drm/exynos_drm.h> | 19 | #include <drm/exynos_drm.h> |
20 | 20 | ||
21 | #include "drm_edid.h" | 21 | #include <drm/drm_edid.h> |
22 | #include "drm_crtc_helper.h" | 22 | #include <drm/drm_crtc_helper.h> |
23 | 23 | ||
24 | #include "exynos_drm_drv.h" | 24 | #include "exynos_drm_drv.h" |
25 | #include "exynos_drm_crtc.h" | 25 | #include "exynos_drm_crtc.h" |
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index a6aea6f3ea1a..e1c53956aa27 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -14,9 +14,9 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "drmP.h" | 17 | #include <drm/drmP.h> |
18 | #include "drm_edid.h" | 18 | #include <drm/drm_edid.h> |
19 | #include "drm_crtc_helper.h" | 19 | #include <drm/drm_crtc_helper.h> |
20 | 20 | ||
21 | #include "regs-hdmi.h" | 21 | #include "regs-hdmi.h" |
22 | 22 | ||
diff --git a/drivers/gpu/drm/exynos/exynos_hdmiphy.c b/drivers/gpu/drm/exynos/exynos_hdmiphy.c index 9fe2995ab9f9..0a8162b7de3d 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmiphy.c +++ b/drivers/gpu/drm/exynos/exynos_hdmiphy.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "drmP.h" | 14 | #include <drm/drmP.h> |
15 | 15 | ||
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 25b97d5e5fcb..e6098f247a5d 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c | |||
@@ -14,7 +14,7 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "drmP.h" | 17 | #include <drm/drmP.h> |
18 | 18 | ||
19 | #include "regs-mixer.h" | 19 | #include "regs-mixer.h" |
20 | #include "regs-vp.h" | 20 | #include "regs-vp.h" |
diff --git a/drivers/gpu/drm/gma500/cdv_device.c b/drivers/gpu/drm/gma500/cdv_device.c index bfc2f397019a..1ceca3d13b65 100644 --- a/drivers/gpu/drm/gma500/cdv_device.c +++ b/drivers/gpu/drm/gma500/cdv_device.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/backlight.h> | 20 | #include <linux/backlight.h> |
21 | #include <drm/drmP.h> | 21 | #include <drm/drmP.h> |
22 | #include <drm/drm.h> | 22 | #include <drm/drm.h> |
23 | #include "gma_drm.h" | 23 | #include <drm/gma_drm.h> |
24 | #include "psb_drv.h" | 24 | #include "psb_drv.h" |
25 | #include "psb_reg.h" | 25 | #include "psb_reg.h" |
26 | #include "psb_intel_reg.h" | 26 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/cdv_intel_dp.c b/drivers/gpu/drm/gma500/cdv_intel_dp.c index c9abc06ef680..e3a3978cf320 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_dp.c +++ b/drivers/gpu/drm/gma500/cdv_intel_dp.c | |||
@@ -27,14 +27,13 @@ | |||
27 | 27 | ||
28 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | 31 | #include <drm/drm_crtc.h> |
32 | #include "drm_crtc.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "drm_crtc_helper.h" | ||
34 | #include "psb_drv.h" | 33 | #include "psb_drv.h" |
35 | #include "psb_intel_drv.h" | 34 | #include "psb_intel_drv.h" |
36 | #include "psb_intel_reg.h" | 35 | #include "psb_intel_reg.h" |
37 | #include "drm_dp_helper.h" | 36 | #include <drm/drm_dp_helper.h> |
38 | 37 | ||
39 | #define _wait_for(COND, MS, W) ({ \ | 38 | #define _wait_for(COND, MS, W) ({ \ |
40 | unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \ | 39 | unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \ |
diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c index df20546a2a34..eefd6cc5b80d 100644 --- a/drivers/gpu/drm/gma500/gem.c +++ b/drivers/gpu/drm/gma500/gem.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include <drm/drmP.h> | 26 | #include <drm/drmP.h> |
27 | #include <drm/drm.h> | 27 | #include <drm/drm.h> |
28 | #include "gma_drm.h" | 28 | #include <drm/gma_drm.h> |
29 | #include "psb_drv.h" | 29 | #include "psb_drv.h" |
30 | 30 | ||
31 | int psb_gem_init_object(struct drm_gem_object *obj) | 31 | int psb_gem_init_object(struct drm_gem_object *obj) |
diff --git a/drivers/gpu/drm/gma500/intel_bios.c b/drivers/gpu/drm/gma500/intel_bios.c index 4fb79cf00ed8..403fffb03abd 100644 --- a/drivers/gpu/drm/gma500/intel_bios.c +++ b/drivers/gpu/drm/gma500/intel_bios.c | |||
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | #include <drm/drmP.h> | 21 | #include <drm/drmP.h> |
22 | #include <drm/drm.h> | 22 | #include <drm/drm.h> |
23 | #include "gma_drm.h" | 23 | #include <drm/gma_drm.h> |
24 | #include "psb_drv.h" | 24 | #include "psb_drv.h" |
25 | #include "psb_intel_drv.h" | 25 | #include "psb_intel_drv.h" |
26 | #include "psb_intel_reg.h" | 26 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/intel_gmbus.c b/drivers/gpu/drm/gma500/intel_gmbus.c index 9db90527bf0f..62cd42e88f28 100644 --- a/drivers/gpu/drm/gma500/intel_gmbus.c +++ b/drivers/gpu/drm/gma500/intel_gmbus.c | |||
@@ -29,10 +29,9 @@ | |||
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
31 | #include <linux/i2c-algo-bit.h> | 31 | #include <linux/i2c-algo-bit.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | ||
34 | #include "psb_intel_drv.h" | 33 | #include "psb_intel_drv.h" |
35 | #include "gma_drm.h" | 34 | #include <drm/gma_drm.h> |
36 | #include "psb_drv.h" | 35 | #include "psb_drv.h" |
37 | #include "psb_intel_reg.h" | 36 | #include "psb_intel_reg.h" |
38 | 37 | ||
diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c index 850cd3fbb969..a97e38e284fa 100644 --- a/drivers/gpu/drm/gma500/mid_bios.c +++ b/drivers/gpu/drm/gma500/mid_bios.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include <drm/drmP.h> | 26 | #include <drm/drmP.h> |
27 | #include <drm/drm.h> | 27 | #include <drm/drm.h> |
28 | #include "gma_drm.h" | 28 | #include <drm/gma_drm.h> |
29 | #include "psb_drv.h" | 29 | #include "psb_drv.h" |
30 | #include "mid_bios.h" | 30 | #include "mid_bios.h" |
31 | 31 | ||
diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index cf49ba5a54bf..010b820744a5 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c +++ b/drivers/gpu/drm/gma500/oaktrail_device.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/dmi.h> | 22 | #include <linux/dmi.h> |
23 | #include <drm/drmP.h> | 23 | #include <drm/drmP.h> |
24 | #include <drm/drm.h> | 24 | #include <drm/drm.h> |
25 | #include "gma_drm.h" | 25 | #include <drm/gma_drm.h> |
26 | #include "psb_drv.h" | 26 | #include "psb_drv.h" |
27 | #include "psb_reg.h" | 27 | #include "psb_reg.h" |
28 | #include "psb_intel_reg.h" | 28 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/psb_device.c b/drivers/gpu/drm/gma500/psb_device.c index f1432f096e58..b58c4701c4e8 100644 --- a/drivers/gpu/drm/gma500/psb_device.c +++ b/drivers/gpu/drm/gma500/psb_device.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/backlight.h> | 20 | #include <linux/backlight.h> |
21 | #include <drm/drmP.h> | 21 | #include <drm/drmP.h> |
22 | #include <drm/drm.h> | 22 | #include <drm/drm.h> |
23 | #include "gma_drm.h" | 23 | #include <drm/gma_drm.h> |
24 | #include "psb_drv.h" | 24 | #include "psb_drv.h" |
25 | #include "psb_reg.h" | 25 | #include "psb_reg.h" |
26 | #include "psb_intel_reg.h" | 26 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 0c4737438530..dd1fbfa7e467 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include <drm/drmP.h> | 22 | #include <drm/drmP.h> |
23 | #include <drm/drm.h> | 23 | #include <drm/drm.h> |
24 | #include "gma_drm.h" | 24 | #include <drm/gma_drm.h> |
25 | #include "psb_drv.h" | 25 | #include "psb_drv.h" |
26 | #include "framebuffer.h" | 26 | #include "framebuffer.h" |
27 | #include "psb_reg.h" | 27 | #include "psb_reg.h" |
diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h index 223ff5b1b5c4..a7fd6c48b793 100644 --- a/drivers/gpu/drm/gma500/psb_drv.h +++ b/drivers/gpu/drm/gma500/psb_drv.h | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <linux/kref.h> | 23 | #include <linux/kref.h> |
24 | 24 | ||
25 | #include <drm/drmP.h> | 25 | #include <drm/drmP.h> |
26 | #include "drm_global.h" | 26 | #include <drm/drm_global.h> |
27 | #include "gma_drm.h" | 27 | #include <drm/gma_drm.h> |
28 | #include "psb_reg.h" | 28 | #include "psb_reg.h" |
29 | #include "psb_intel_drv.h" | 29 | #include "psb_intel_drv.h" |
30 | #include "intel_bios.h" | 30 | #include "intel_bios.h" |
diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c index d35f93ba3a85..fc9292705dbf 100644 --- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c +++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c | |||
@@ -29,12 +29,11 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/drm_crtc.h> |
34 | #include "drm_crtc.h" | 34 | #include <drm/drm_edid.h> |
35 | #include "drm_edid.h" | ||
36 | #include "psb_intel_drv.h" | 35 | #include "psb_intel_drv.h" |
37 | #include "gma_drm.h" | 36 | #include <drm/gma_drm.h> |
38 | #include "psb_drv.h" | 37 | #include "psb_drv.h" |
39 | #include "psb_intel_sdvo_regs.h" | 38 | #include "psb_intel_sdvo_regs.h" |
40 | #include "psb_intel_reg.h" | 39 | #include "psb_intel_reg.h" |
diff --git a/drivers/gpu/drm/i2c/ch7006_priv.h b/drivers/gpu/drm/i2c/ch7006_priv.h index 09599f4c0c9a..ce577841f931 100644 --- a/drivers/gpu/drm/i2c/ch7006_priv.h +++ b/drivers/gpu/drm/i2c/ch7006_priv.h | |||
@@ -27,10 +27,10 @@ | |||
27 | #ifndef __DRM_I2C_CH7006_PRIV_H__ | 27 | #ifndef __DRM_I2C_CH7006_PRIV_H__ |
28 | #define __DRM_I2C_CH7006_PRIV_H__ | 28 | #define __DRM_I2C_CH7006_PRIV_H__ |
29 | 29 | ||
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm_crtc_helper.h" | 31 | #include <drm/drm_crtc_helper.h> |
32 | #include "drm_encoder_slave.h" | 32 | #include <drm/drm_encoder_slave.h> |
33 | #include "i2c/ch7006.h" | 33 | #include <drm/i2c/ch7006.h> |
34 | 34 | ||
35 | typedef int64_t fixed; | 35 | typedef int64_t fixed; |
36 | #define fixed1 (1LL << 32) | 36 | #define fixed1 (1LL << 32) |
diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c index 30b8ae5e5c4a..002ce7874332 100644 --- a/drivers/gpu/drm/i2c/sil164_drv.c +++ b/drivers/gpu/drm/i2c/sil164_drv.c | |||
@@ -26,10 +26,10 @@ | |||
26 | 26 | ||
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm_crtc_helper.h" | 30 | #include <drm/drm_crtc_helper.h> |
31 | #include "drm_encoder_slave.h" | 31 | #include <drm/drm_encoder_slave.h> |
32 | #include "i2c/sil164.h" | 32 | #include <drm/i2c/sil164.h> |
33 | 33 | ||
34 | struct sil164_priv { | 34 | struct sil164_priv { |
35 | struct sil164_encoder_params config; | 35 | struct sil164_encoder_params config; |
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c index 463ec6871fe9..004ecdfe1b55 100644 --- a/drivers/gpu/drm/i810/i810_dma.c +++ b/drivers/gpu/drm/i810/i810_dma.c | |||
@@ -30,9 +30,8 @@ | |||
30 | * | 30 | * |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "drm.h" | 34 | #include <drm/i810_drm.h> |
35 | #include "i810_drm.h" | ||
36 | #include "i810_drv.h" | 35 | #include "i810_drv.h" |
37 | #include <linux/interrupt.h> /* For task queue support */ | 36 | #include <linux/interrupt.h> /* For task queue support */ |
38 | #include <linux/delay.h> | 37 | #include <linux/delay.h> |
diff --git a/drivers/gpu/drm/i810/i810_drv.c b/drivers/gpu/drm/i810/i810_drv.c index 48cfcca2b350..2e91fc3580b4 100644 --- a/drivers/gpu/drm/i810/i810_drv.c +++ b/drivers/gpu/drm/i810/i810_drv.c | |||
@@ -32,12 +32,11 @@ | |||
32 | 32 | ||
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm.h" | 36 | #include <drm/i810_drm.h> |
37 | #include "i810_drm.h" | ||
38 | #include "i810_drv.h" | 37 | #include "i810_drv.h" |
39 | 38 | ||
40 | #include "drm_pciids.h" | 39 | #include <drm/drm_pciids.h> |
41 | 40 | ||
42 | static struct pci_device_id pciidlist[] = { | 41 | static struct pci_device_id pciidlist[] = { |
43 | i810_PCI_IDS | 42 | i810_PCI_IDS |
diff --git a/drivers/gpu/drm/i915/dvo.h b/drivers/gpu/drm/i915/dvo.h index 74b5efccfdb1..33a62ad80100 100644 --- a/drivers/gpu/drm/i915/dvo.h +++ b/drivers/gpu/drm/i915/dvo.h | |||
@@ -24,9 +24,8 @@ | |||
24 | #define _INTEL_DVO_H | 24 | #define _INTEL_DVO_H |
25 | 25 | ||
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm.h" | 28 | #include <drm/drm_crtc.h> |
29 | #include "drm_crtc.h" | ||
30 | #include "intel_drv.h" | 29 | #include "intel_drv.h" |
31 | 30 | ||
32 | struct intel_dvo_device { | 31 | struct intel_dvo_device { |
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 7a4b3f3aad3f..dde8b505bf7f 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -30,11 +30,10 @@ | |||
30 | #include <linux/debugfs.h> | 30 | #include <linux/debugfs.h> |
31 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
32 | #include <linux/export.h> | 32 | #include <linux/export.h> |
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "drm.h" | ||
35 | #include "intel_drv.h" | 34 | #include "intel_drv.h" |
36 | #include "intel_ringbuffer.h" | 35 | #include "intel_ringbuffer.h" |
37 | #include "i915_drm.h" | 36 | #include <drm/i915_drm.h> |
38 | #include "i915_drv.h" | 37 | #include "i915_drv.h" |
39 | 38 | ||
40 | #define DRM_I915_RING_DEBUG 1 | 39 | #define DRM_I915_RING_DEBUG 1 |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index ffbc9156c792..c9bfd83dde64 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -28,12 +28,11 @@ | |||
28 | 28 | ||
29 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 29 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "drm_crtc_helper.h" | 33 | #include <drm/drm_fb_helper.h> |
34 | #include "drm_fb_helper.h" | ||
35 | #include "intel_drv.h" | 34 | #include "intel_drv.h" |
36 | #include "i915_drm.h" | 35 | #include <drm/i915_drm.h> |
37 | #include "i915_drv.h" | 36 | #include "i915_drv.h" |
38 | #include "i915_trace.h" | 37 | #include "i915_trace.h" |
39 | #include <linux/pci.h> | 38 | #include <linux/pci.h> |
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index a7837e556945..aac4e5e1a5b9 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -28,16 +28,15 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include <linux/device.h> | 30 | #include <linux/device.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | 32 | #include <drm/i915_drm.h> |
33 | #include "i915_drm.h" | ||
34 | #include "i915_drv.h" | 33 | #include "i915_drv.h" |
35 | #include "i915_trace.h" | 34 | #include "i915_trace.h" |
36 | #include "intel_drv.h" | 35 | #include "intel_drv.h" |
37 | 36 | ||
38 | #include <linux/console.h> | 37 | #include <linux/console.h> |
39 | #include <linux/module.h> | 38 | #include <linux/module.h> |
40 | #include "drm_crtc_helper.h" | 39 | #include <drm/drm_crtc_helper.h> |
41 | 40 | ||
42 | static int i915_modeset __read_mostly = -1; | 41 | static int i915_modeset __read_mostly = -1; |
43 | module_param_named(modeset, i915_modeset, int, 0400); | 42 | module_param_named(modeset, i915_modeset, int, 0400); |
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 365a7dc8a4a8..e957f3740f68 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -25,9 +25,8 @@ | |||
25 | * | 25 | * |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm.h" | 29 | #include <drm/i915_drm.h> |
30 | #include "i915_drm.h" | ||
31 | #include "i915_drv.h" | 30 | #include "i915_drv.h" |
32 | #include "i915_trace.h" | 31 | #include "i915_trace.h" |
33 | #include "intel_drv.h" | 32 | #include "intel_drv.h" |
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 4aa7ecf77ede..1eb48faf741b 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c | |||
@@ -85,8 +85,8 @@ | |||
85 | * | 85 | * |
86 | */ | 86 | */ |
87 | 87 | ||
88 | #include "drmP.h" | 88 | #include <drm/drmP.h> |
89 | #include "i915_drm.h" | 89 | #include <drm/i915_drm.h> |
90 | #include "i915_drv.h" | 90 | #include "i915_drv.h" |
91 | 91 | ||
92 | /* This is a HW constraint. The value below is the largest known requirement | 92 | /* This is a HW constraint. The value below is the largest known requirement |
diff --git a/drivers/gpu/drm/i915/i915_gem_debug.c b/drivers/gpu/drm/i915/i915_gem_debug.c index bddf7bed183f..582e6a5f3dac 100644 --- a/drivers/gpu/drm/i915/i915_gem_debug.c +++ b/drivers/gpu/drm/i915/i915_gem_debug.c | |||
@@ -25,9 +25,8 @@ | |||
25 | * | 25 | * |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm.h" | 29 | #include <drm/i915_drm.h> |
30 | #include "i915_drm.h" | ||
31 | #include "i915_drv.h" | 30 | #include "i915_drv.h" |
32 | 31 | ||
33 | #if WATCH_LISTS | 32 | #if WATCH_LISTS |
diff --git a/drivers/gpu/drm/i915/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/i915_gem_dmabuf.c index ca3497e1108c..773ef77b6c22 100644 --- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c +++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * Authors: | 23 | * Authors: |
24 | * Dave Airlie <airlied@redhat.com> | 24 | * Dave Airlie <airlied@redhat.com> |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "i915_drv.h" | 27 | #include "i915_drv.h" |
28 | #include <linux/dma-buf.h> | 28 | #include <linux/dma-buf.h> |
29 | 29 | ||
diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c index a2d8acde8550..776a3225184c 100644 --- a/drivers/gpu/drm/i915/i915_gem_evict.c +++ b/drivers/gpu/drm/i915/i915_gem_evict.c | |||
@@ -26,10 +26,9 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm.h" | ||
31 | #include "i915_drv.h" | 30 | #include "i915_drv.h" |
32 | #include "i915_drm.h" | 31 | #include <drm/i915_drm.h> |
33 | #include "i915_trace.h" | 32 | #include "i915_trace.h" |
34 | 33 | ||
35 | static bool | 34 | static bool |
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 6a2f3e50c714..3eea143749f6 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c | |||
@@ -26,9 +26,8 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm.h" | 30 | #include <drm/i915_drm.h> |
31 | #include "i915_drm.h" | ||
32 | #include "i915_drv.h" | 31 | #include "i915_drv.h" |
33 | #include "i915_trace.h" | 32 | #include "i915_trace.h" |
34 | #include "intel_drv.h" | 33 | #include "intel_drv.h" |
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 47e427e4bc67..df470b5e8d36 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c | |||
@@ -22,9 +22,8 @@ | |||
22 | * | 22 | * |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "drm.h" | 26 | #include <drm/i915_drm.h> |
27 | #include "i915_drm.h" | ||
28 | #include "i915_drv.h" | 27 | #include "i915_drv.h" |
29 | #include "i915_trace.h" | 28 | #include "i915_trace.h" |
30 | #include "intel_drv.h" | 29 | #include "intel_drv.h" |
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index ada2e90a2a60..8e91083b126f 100644 --- a/drivers/gpu/drm/i915/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c | |||
@@ -26,9 +26,8 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm.h" | 30 | #include <drm/i915_drm.h> |
31 | #include "i915_drm.h" | ||
32 | #include "i915_drv.h" | 31 | #include "i915_drv.h" |
33 | 32 | ||
34 | /* | 33 | /* |
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c index 8093ecd2ea31..3208650a235c 100644 --- a/drivers/gpu/drm/i915/i915_gem_tiling.c +++ b/drivers/gpu/drm/i915/i915_gem_tiling.c | |||
@@ -25,11 +25,10 @@ | |||
25 | * | 25 | * |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "linux/string.h" | 28 | #include <linux/string.h> |
29 | #include "linux/bitops.h" | 29 | #include <linux/bitops.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | 31 | #include <drm/i915_drm.h> |
32 | #include "i915_drm.h" | ||
33 | #include "i915_drv.h" | 32 | #include "i915_drv.h" |
34 | 33 | ||
35 | /** @file i915_gem_tiling.c | 34 | /** @file i915_gem_tiling.c |
diff --git a/drivers/gpu/drm/i915/i915_ioc32.c b/drivers/gpu/drm/i915/i915_ioc32.c index 0e72abb9f701..3c59584161c2 100644 --- a/drivers/gpu/drm/i915/i915_ioc32.c +++ b/drivers/gpu/drm/i915/i915_ioc32.c | |||
@@ -31,9 +31,8 @@ | |||
31 | */ | 31 | */ |
32 | #include <linux/compat.h> | 32 | #include <linux/compat.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/i915_drm.h> |
36 | #include "i915_drm.h" | ||
37 | #include "i915_drv.h" | 36 | #include "i915_drv.h" |
38 | 37 | ||
39 | typedef struct _drm_i915_batchbuffer32 { | 38 | typedef struct _drm_i915_batchbuffer32 { |
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index d7f0066538a9..4e9888388c0c 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -30,9 +30,8 @@ | |||
30 | 30 | ||
31 | #include <linux/sysrq.h> | 31 | #include <linux/sysrq.h> |
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "drm.h" | 34 | #include <drm/i915_drm.h> |
35 | #include "i915_drm.h" | ||
36 | #include "i915_drv.h" | 35 | #include "i915_drv.h" |
37 | #include "i915_trace.h" | 36 | #include "i915_trace.h" |
38 | #include "intel_drv.h" | 37 | #include "intel_drv.h" |
diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c index 4776ccf1b3cd..5854bddb1e9f 100644 --- a/drivers/gpu/drm/i915/i915_suspend.c +++ b/drivers/gpu/drm/i915/i915_suspend.c | |||
@@ -24,9 +24,8 @@ | |||
24 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 24 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm.h" | 28 | #include <drm/i915_drm.h> |
29 | #include "i915_drm.h" | ||
30 | #include "intel_drv.h" | 29 | #include "intel_drv.h" |
31 | #include "i915_reg.h" | 30 | #include "i915_reg.h" |
32 | 31 | ||
diff --git a/drivers/gpu/drm/i915/intel_acpi.c b/drivers/gpu/drm/i915/intel_acpi.c index f413899475e9..bcbbaea2a78e 100644 --- a/drivers/gpu/drm/i915/intel_acpi.c +++ b/drivers/gpu/drm/i915/intel_acpi.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <linux/vga_switcheroo.h> | 8 | #include <linux/vga_switcheroo.h> |
9 | #include <acpi/acpi_drivers.h> | 9 | #include <acpi/acpi_drivers.h> |
10 | 10 | ||
11 | #include "drmP.h" | 11 | #include <drm/drmP.h> |
12 | #include "i915_drv.h" | 12 | #include "i915_drv.h" |
13 | 13 | ||
14 | #define INTEL_DSM_REVISION_ID 1 /* For Calpella anyway... */ | 14 | #define INTEL_DSM_REVISION_ID 1 /* For Calpella anyway... */ |
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 8c6074154bf6..0ed6baff4b0c 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c | |||
@@ -26,9 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | #include <linux/dmi.h> | 27 | #include <linux/dmi.h> |
28 | #include <drm/drm_dp_helper.h> | 28 | #include <drm/drm_dp_helper.h> |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm.h" | 30 | #include <drm/i915_drm.h> |
31 | #include "i915_drm.h" | ||
32 | #include "i915_drv.h" | 31 | #include "i915_drv.h" |
33 | #include "intel_bios.h" | 32 | #include "intel_bios.h" |
34 | 33 | ||
diff --git a/drivers/gpu/drm/i915/intel_bios.h b/drivers/gpu/drm/i915/intel_bios.h index 31c2107e7825..36e57f934373 100644 --- a/drivers/gpu/drm/i915/intel_bios.h +++ b/drivers/gpu/drm/i915/intel_bios.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #ifndef _I830_BIOS_H_ | 28 | #ifndef _I830_BIOS_H_ |
29 | #define _I830_BIOS_H_ | 29 | #define _I830_BIOS_H_ |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | 32 | ||
33 | struct vbt_header { | 33 | struct vbt_header { |
34 | u8 signature[20]; /**< Always starts with 'VBT$' */ | 34 | u8 signature[20]; /**< Always starts with 'VBT$' */ |
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index c42b9809f86d..893f30164b7e 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c | |||
@@ -27,13 +27,12 @@ | |||
27 | #include <linux/dmi.h> | 27 | #include <linux/dmi.h> |
28 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | 31 | #include <drm/drm_crtc.h> |
32 | #include "drm_crtc.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "drm_crtc_helper.h" | 33 | #include <drm/drm_edid.h> |
34 | #include "drm_edid.h" | ||
35 | #include "intel_drv.h" | 34 | #include "intel_drv.h" |
36 | #include "i915_drm.h" | 35 | #include <drm/i915_drm.h> |
37 | #include "i915_drv.h" | 36 | #include "i915_drv.h" |
38 | 37 | ||
39 | /* Here's the desired hotplug mode */ | 38 | /* Here's the desired hotplug mode */ |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 6f5aafa1b633..e3c02655d36f 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -32,13 +32,13 @@ | |||
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/vgaarb.h> | 33 | #include <linux/vgaarb.h> |
34 | #include <drm/drm_edid.h> | 34 | #include <drm/drm_edid.h> |
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "intel_drv.h" | 36 | #include "intel_drv.h" |
37 | #include "i915_drm.h" | 37 | #include <drm/i915_drm.h> |
38 | #include "i915_drv.h" | 38 | #include "i915_drv.h" |
39 | #include "i915_trace.h" | 39 | #include "i915_trace.h" |
40 | #include "drm_dp_helper.h" | 40 | #include <drm/drm_dp_helper.h> |
41 | #include "drm_crtc_helper.h" | 41 | #include <drm/drm_crtc_helper.h> |
42 | #include <linux/dma_remapping.h> | 42 | #include <linux/dma_remapping.h> |
43 | 43 | ||
44 | #define HAS_eDP (intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP)) | 44 | #define HAS_eDP (intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP)) |
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 1474f84fdbd0..6c8746c030c7 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -28,13 +28,12 @@ | |||
28 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/export.h> | 30 | #include <linux/export.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | 32 | #include <drm/drm_crtc.h> |
33 | #include "drm_crtc.h" | 33 | #include <drm/drm_crtc_helper.h> |
34 | #include "drm_crtc_helper.h" | 34 | #include <drm/drm_edid.h> |
35 | #include "drm_edid.h" | ||
36 | #include "intel_drv.h" | 35 | #include "intel_drv.h" |
37 | #include "i915_drm.h" | 36 | #include <drm/i915_drm.h> |
38 | #include "i915_drv.h" | 37 | #include "i915_drv.h" |
39 | 38 | ||
40 | #define DP_LINK_STATUS_SIZE 6 | 39 | #define DP_LINK_STATUS_SIZE 6 |
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 351fd7179cd7..05cc7c372fc5 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -26,12 +26,12 @@ | |||
26 | #define __INTEL_DRV_H__ | 26 | #define __INTEL_DRV_H__ |
27 | 27 | ||
28 | #include <linux/i2c.h> | 28 | #include <linux/i2c.h> |
29 | #include "i915_drm.h" | 29 | #include <drm/i915_drm.h> |
30 | #include "i915_drv.h" | 30 | #include "i915_drv.h" |
31 | #include "drm_crtc.h" | 31 | #include <drm/drm_crtc.h> |
32 | #include "drm_crtc_helper.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "drm_fb_helper.h" | 33 | #include <drm/drm_fb_helper.h> |
34 | #include "drm_dp_helper.h" | 34 | #include <drm/drm_dp_helper.h> |
35 | 35 | ||
36 | #define _wait_for(COND, MS, W) ({ \ | 36 | #define _wait_for(COND, MS, W) ({ \ |
37 | unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \ | 37 | unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \ |
diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/intel_dvo.c index 4f1fdcc44005..15da99533e5b 100644 --- a/drivers/gpu/drm/i915/intel_dvo.c +++ b/drivers/gpu/drm/i915/intel_dvo.c | |||
@@ -26,11 +26,10 @@ | |||
26 | */ | 26 | */ |
27 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm.h" | 30 | #include <drm/drm_crtc.h> |
31 | #include "drm_crtc.h" | ||
32 | #include "intel_drv.h" | 31 | #include "intel_drv.h" |
33 | #include "i915_drm.h" | 32 | #include <drm/i915_drm.h> |
34 | #include "i915_drv.h" | 33 | #include "i915_drv.h" |
35 | #include "dvo.h" | 34 | #include "dvo.h" |
36 | 35 | ||
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 97f673523b97..7b30b5c2c4ee 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c | |||
@@ -36,12 +36,11 @@ | |||
36 | #include <linux/init.h> | 36 | #include <linux/init.h> |
37 | #include <linux/vga_switcheroo.h> | 37 | #include <linux/vga_switcheroo.h> |
38 | 38 | ||
39 | #include "drmP.h" | 39 | #include <drm/drmP.h> |
40 | #include "drm.h" | 40 | #include <drm/drm_crtc.h> |
41 | #include "drm_crtc.h" | 41 | #include <drm/drm_fb_helper.h> |
42 | #include "drm_fb_helper.h" | ||
43 | #include "intel_drv.h" | 42 | #include "intel_drv.h" |
44 | #include "i915_drm.h" | 43 | #include <drm/i915_drm.h> |
45 | #include "i915_drv.h" | 44 | #include "i915_drv.h" |
46 | 45 | ||
47 | static struct fb_ops intelfb_ops = { | 46 | static struct fb_ops intelfb_ops = { |
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 08f2b63d740a..9ba0aaed7ee8 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c | |||
@@ -29,12 +29,11 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/drm_crtc.h> |
34 | #include "drm_crtc.h" | 34 | #include <drm/drm_edid.h> |
35 | #include "drm_edid.h" | ||
36 | #include "intel_drv.h" | 35 | #include "intel_drv.h" |
37 | #include "i915_drm.h" | 36 | #include <drm/i915_drm.h> |
38 | #include "i915_drv.h" | 37 | #include "i915_drv.h" |
39 | 38 | ||
40 | static void | 39 | static void |
diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index b9755f6378d8..c2c6dbc0971c 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c | |||
@@ -29,10 +29,9 @@ | |||
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/i2c-algo-bit.h> | 30 | #include <linux/i2c-algo-bit.h> |
31 | #include <linux/export.h> | 31 | #include <linux/export.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | ||
34 | #include "intel_drv.h" | 33 | #include "intel_drv.h" |
35 | #include "i915_drm.h" | 34 | #include <drm/i915_drm.h> |
36 | #include "i915_drv.h" | 35 | #include "i915_drv.h" |
37 | 36 | ||
38 | struct gmbus_port { | 37 | struct gmbus_port { |
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 40d72bd64e11..e3166df55daa 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
@@ -31,12 +31,11 @@ | |||
31 | #include <linux/dmi.h> | 31 | #include <linux/dmi.h> |
32 | #include <linux/i2c.h> | 32 | #include <linux/i2c.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/drm_crtc.h> |
36 | #include "drm_crtc.h" | 36 | #include <drm/drm_edid.h> |
37 | #include "drm_edid.h" | ||
38 | #include "intel_drv.h" | 37 | #include "intel_drv.h" |
39 | #include "i915_drm.h" | 38 | #include <drm/i915_drm.h> |
40 | #include "i915_drv.h" | 39 | #include "i915_drv.h" |
41 | #include <linux/acpi.h> | 40 | #include <linux/acpi.h> |
42 | 41 | ||
diff --git a/drivers/gpu/drm/i915/intel_modes.c b/drivers/gpu/drm/i915/intel_modes.c index 4bc1c0fc342a..cabd84bf66eb 100644 --- a/drivers/gpu/drm/i915/intel_modes.c +++ b/drivers/gpu/drm/i915/intel_modes.c | |||
@@ -27,8 +27,8 @@ | |||
27 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
28 | #include <linux/fb.h> | 28 | #include <linux/fb.h> |
29 | #include <drm/drm_edid.h> | 29 | #include <drm/drm_edid.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm_edid.h" | 31 | #include <drm/drm_edid.h> |
32 | #include "intel_drv.h" | 32 | #include "intel_drv.h" |
33 | #include "i915_drv.h" | 33 | #include "i915_drv.h" |
34 | 34 | ||
diff --git a/drivers/gpu/drm/i915/intel_opregion.c b/drivers/gpu/drm/i915/intel_opregion.c index e27c17012628..5530413213d8 100644 --- a/drivers/gpu/drm/i915/intel_opregion.c +++ b/drivers/gpu/drm/i915/intel_opregion.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include <linux/acpi_io.h> | 31 | #include <linux/acpi_io.h> |
32 | #include <acpi/video.h> | 32 | #include <acpi/video.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "i915_drm.h" | 35 | #include <drm/i915_drm.h> |
36 | #include "i915_drv.h" | 36 | #include "i915_drv.h" |
37 | #include "intel_drv.h" | 37 | #include "intel_drv.h" |
38 | 38 | ||
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index afd0f30ab882..ebff850a9ab6 100644 --- a/drivers/gpu/drm/i915/intel_overlay.c +++ b/drivers/gpu/drm/i915/intel_overlay.c | |||
@@ -25,9 +25,8 @@ | |||
25 | * | 25 | * |
26 | * Derived from Xorg ddx, xf86-video-intel, src/i830_video.c | 26 | * Derived from Xorg ddx, xf86-video-intel, src/i830_video.c |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm.h" | 29 | #include <drm/i915_drm.h> |
30 | #include "i915_drm.h" | ||
31 | #include "i915_drv.h" | 30 | #include "i915_drv.h" |
32 | #include "i915_reg.h" | 31 | #include "i915_reg.h" |
33 | #include "intel_drv.h" | 32 | #include "intel_drv.h" |
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 984a0c5fbf5d..ecbc5c5dbbbc 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -27,10 +27,9 @@ | |||
27 | * | 27 | * |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | ||
32 | #include "i915_drv.h" | 31 | #include "i915_drv.h" |
33 | #include "i915_drm.h" | 32 | #include <drm/i915_drm.h> |
34 | #include "i915_trace.h" | 33 | #include "i915_trace.h" |
35 | #include "intel_drv.h" | 34 | #include "intel_drv.h" |
36 | 35 | ||
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 39c319827f91..0007a4d9bf6e 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c | |||
@@ -29,12 +29,11 @@ | |||
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/delay.h> | 30 | #include <linux/delay.h> |
31 | #include <linux/export.h> | 31 | #include <linux/export.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/drm_crtc.h> |
34 | #include "drm_crtc.h" | 34 | #include <drm/drm_edid.h> |
35 | #include "drm_edid.h" | ||
36 | #include "intel_drv.h" | 35 | #include "intel_drv.h" |
37 | #include "i915_drm.h" | 36 | #include <drm/i915_drm.h> |
38 | #include "i915_drv.h" | 37 | #include "i915_drv.h" |
39 | #include "intel_sdvo_regs.h" | 38 | #include "intel_sdvo_regs.h" |
40 | 39 | ||
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 7644f31a3778..82f5e5c7009d 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c | |||
@@ -29,11 +29,11 @@ | |||
29 | * registers; newer ones are much simpler and we can use the new DRM plane | 29 | * registers; newer ones are much simpler and we can use the new DRM plane |
30 | * support. | 30 | * support. |
31 | */ | 31 | */ |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm_crtc.h" | 33 | #include <drm/drm_crtc.h> |
34 | #include "drm_fourcc.h" | 34 | #include <drm/drm_fourcc.h> |
35 | #include "intel_drv.h" | 35 | #include "intel_drv.h" |
36 | #include "i915_drm.h" | 36 | #include <drm/i915_drm.h> |
37 | #include "i915_drv.h" | 37 | #include "i915_drv.h" |
38 | 38 | ||
39 | static void | 39 | static void |
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index d2c5c8f3baf3..62bb048c135e 100644 --- a/drivers/gpu/drm/i915/intel_tv.c +++ b/drivers/gpu/drm/i915/intel_tv.c | |||
@@ -30,12 +30,11 @@ | |||
30 | * Integrated TV-out support for the 915GM and 945GM. | 30 | * Integrated TV-out support for the 915GM and 945GM. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "drm.h" | 34 | #include <drm/drm_crtc.h> |
35 | #include "drm_crtc.h" | 35 | #include <drm/drm_edid.h> |
36 | #include "drm_edid.h" | ||
37 | #include "intel_drv.h" | 36 | #include "intel_drv.h" |
38 | #include "i915_drm.h" | 37 | #include <drm/i915_drm.h> |
39 | #include "i915_drv.h" | 38 | #include "i915_drv.h" |
40 | 39 | ||
41 | enum tv_margin { | 40 | enum tv_margin { |
diff --git a/drivers/gpu/drm/mga/mga_dma.c b/drivers/gpu/drm/mga/mga_dma.c index 507aa3df0168..cc3166dd445a 100644 --- a/drivers/gpu/drm/mga/mga_dma.c +++ b/drivers/gpu/drm/mga/mga_dma.c | |||
@@ -35,10 +35,8 @@ | |||
35 | * \author Gareth Hughes <gareth@valinux.com> | 35 | * \author Gareth Hughes <gareth@valinux.com> |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "drmP.h" | 38 | #include <drm/drmP.h> |
39 | #include "drm.h" | 39 | #include <drm/mga_drm.h> |
40 | #include "drm_sarea.h" | ||
41 | #include "mga_drm.h" | ||
42 | #include "mga_drv.h" | 40 | #include "mga_drv.h" |
43 | 41 | ||
44 | #define MGA_DEFAULT_USEC_TIMEOUT 10000 | 42 | #define MGA_DEFAULT_USEC_TIMEOUT 10000 |
diff --git a/drivers/gpu/drm/mga/mga_drv.c b/drivers/gpu/drm/mga/mga_drv.c index b1bb46de3f5a..17d0a637e4fb 100644 --- a/drivers/gpu/drm/mga/mga_drv.c +++ b/drivers/gpu/drm/mga/mga_drv.c | |||
@@ -31,12 +31,11 @@ | |||
31 | 31 | ||
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/mga_drm.h> |
36 | #include "mga_drm.h" | ||
37 | #include "mga_drv.h" | 36 | #include "mga_drv.h" |
38 | 37 | ||
39 | #include "drm_pciids.h" | 38 | #include <drm/drm_pciids.h> |
40 | 39 | ||
41 | static int mga_driver_device_is_agp(struct drm_device *dev); | 40 | static int mga_driver_device_is_agp(struct drm_device *dev); |
42 | 41 | ||
diff --git a/drivers/gpu/drm/mga/mga_ioc32.c b/drivers/gpu/drm/mga/mga_ioc32.c index c1f877b7bac1..709e90db8c40 100644 --- a/drivers/gpu/drm/mga/mga_ioc32.c +++ b/drivers/gpu/drm/mga/mga_ioc32.c | |||
@@ -32,9 +32,8 @@ | |||
32 | */ | 32 | */ |
33 | #include <linux/compat.h> | 33 | #include <linux/compat.h> |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm.h" | 36 | #include <drm/mga_drm.h> |
37 | #include "mga_drm.h" | ||
38 | 37 | ||
39 | typedef struct drm32_mga_init { | 38 | typedef struct drm32_mga_init { |
40 | int func; | 39 | int func; |
diff --git a/drivers/gpu/drm/mga/mga_irq.c b/drivers/gpu/drm/mga/mga_irq.c index 2581202297e4..598c281def0a 100644 --- a/drivers/gpu/drm/mga/mga_irq.c +++ b/drivers/gpu/drm/mga/mga_irq.c | |||
@@ -31,9 +31,8 @@ | |||
31 | * Eric Anholt <anholt@FreeBSD.org> | 31 | * Eric Anholt <anholt@FreeBSD.org> |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/mga_drm.h> |
36 | #include "mga_drm.h" | ||
37 | #include "mga_drv.h" | 36 | #include "mga_drv.h" |
38 | 37 | ||
39 | u32 mga_get_vblank_counter(struct drm_device *dev, int crtc) | 38 | u32 mga_get_vblank_counter(struct drm_device *dev, int crtc) |
diff --git a/drivers/gpu/drm/mga/mga_state.c b/drivers/gpu/drm/mga/mga_state.c index 9ce2827f8c00..9c145143ad0f 100644 --- a/drivers/gpu/drm/mga/mga_state.c +++ b/drivers/gpu/drm/mga/mga_state.c | |||
@@ -32,9 +32,8 @@ | |||
32 | * Gareth Hughes <gareth@valinux.com> | 32 | * Gareth Hughes <gareth@valinux.com> |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm.h" | 36 | #include <drm/mga_drm.h> |
37 | #include "mga_drm.h" | ||
38 | #include "mga_drv.h" | 37 | #include "mga_drv.h" |
39 | 38 | ||
40 | /* ================================================================ | 39 | /* ================================================================ |
diff --git a/drivers/gpu/drm/mga/mga_warp.c b/drivers/gpu/drm/mga/mga_warp.c index 722a91b69b0c..0b76352260a9 100644 --- a/drivers/gpu/drm/mga/mga_warp.c +++ b/drivers/gpu/drm/mga/mga_warp.c | |||
@@ -32,9 +32,8 @@ | |||
32 | #include <linux/platform_device.h> | 32 | #include <linux/platform_device.h> |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "drm.h" | 36 | #include <drm/mga_drm.h> |
37 | #include "mga_drm.h" | ||
38 | #include "mga_drv.h" | 37 | #include "mga_drv.h" |
39 | 38 | ||
40 | #define FIRMWARE_G200 "matrox/g200_warp.fw" | 39 | #define FIRMWARE_G200 "matrox/g200_warp.fw" |
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c index e5f145d2cb3b..1e910117b0a2 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.c +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c | |||
@@ -10,12 +10,11 @@ | |||
10 | */ | 10 | */ |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include <linux/console.h> | 12 | #include <linux/console.h> |
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | #include "drm.h" | ||
15 | 14 | ||
16 | #include "mgag200_drv.h" | 15 | #include "mgag200_drv.h" |
17 | 16 | ||
18 | #include "drm_pciids.h" | 17 | #include <drm/drm_pciids.h> |
19 | 18 | ||
20 | /* | 19 | /* |
21 | * This is the generic driver code. This binds the driver to the drm core, | 20 | * This is the generic driver code. This binds the driver to the drm core, |
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h index d22cbbf3a202..5ea5033eae0a 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.h +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h | |||
@@ -15,12 +15,12 @@ | |||
15 | 15 | ||
16 | #include <video/vga.h> | 16 | #include <video/vga.h> |
17 | 17 | ||
18 | #include "drm/drm_fb_helper.h" | 18 | #include <drm/drm_fb_helper.h> |
19 | #include "ttm/ttm_bo_api.h" | 19 | #include <drm/ttm/ttm_bo_api.h> |
20 | #include "ttm/ttm_bo_driver.h" | 20 | #include <drm/ttm/ttm_bo_driver.h> |
21 | #include "ttm/ttm_placement.h" | 21 | #include <drm/ttm/ttm_placement.h> |
22 | #include "ttm/ttm_memory.h" | 22 | #include <drm/ttm/ttm_memory.h> |
23 | #include "ttm/ttm_module.h" | 23 | #include <drm/ttm/ttm_module.h> |
24 | 24 | ||
25 | #include <linux/i2c.h> | 25 | #include <linux/i2c.h> |
26 | #include <linux/i2c-algo-bit.h> | 26 | #include <linux/i2c-algo-bit.h> |
diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c index 880d3369760e..2f486481d79a 100644 --- a/drivers/gpu/drm/mgag200/mgag200_fb.c +++ b/drivers/gpu/drm/mgag200/mgag200_fb.c | |||
@@ -11,9 +11,8 @@ | |||
11 | * Dave Airlie | 11 | * Dave Airlie |
12 | */ | 12 | */ |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include "drmP.h" | 14 | #include <drm/drmP.h> |
15 | #include "drm.h" | 15 | #include <drm/drm_fb_helper.h> |
16 | #include "drm_fb_helper.h" | ||
17 | 16 | ||
18 | #include <linux/fb.h> | 17 | #include <linux/fb.h> |
19 | 18 | ||
diff --git a/drivers/gpu/drm/mgag200/mgag200_i2c.c b/drivers/gpu/drm/mgag200/mgag200_i2c.c index dd3568a1b6b0..5a88ec51b513 100644 --- a/drivers/gpu/drm/mgag200/mgag200_i2c.c +++ b/drivers/gpu/drm/mgag200/mgag200_i2c.c | |||
@@ -28,8 +28,7 @@ | |||
28 | #include <linux/export.h> | 28 | #include <linux/export.h> |
29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
30 | #include <linux/i2c-algo-bit.h> | 30 | #include <linux/i2c-algo-bit.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | ||
33 | 32 | ||
34 | #include "mgag200_drv.h" | 33 | #include "mgag200_drv.h" |
35 | 34 | ||
diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index 636a81cd2f37..d6a1aae33701 100644 --- a/drivers/gpu/drm/mgag200/mgag200_main.c +++ b/drivers/gpu/drm/mgag200/mgag200_main.c | |||
@@ -10,9 +10,8 @@ | |||
10 | * Matt Turner | 10 | * Matt Turner |
11 | * Dave Airlie | 11 | * Dave Airlie |
12 | */ | 12 | */ |
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | #include "drm.h" | 14 | #include <drm/drm_crtc_helper.h> |
15 | #include "drm_crtc_helper.h" | ||
16 | #include "mgag200_drv.h" | 15 | #include "mgag200_drv.h" |
17 | 16 | ||
18 | static void mga_user_framebuffer_destroy(struct drm_framebuffer *fb) | 17 | static void mga_user_framebuffer_destroy(struct drm_framebuffer *fb) |
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index c7420e83c0b9..d3d99a28ddef 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c | |||
@@ -13,9 +13,8 @@ | |||
13 | 13 | ||
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | 15 | ||
16 | #include "drmP.h" | 16 | #include <drm/drmP.h> |
17 | #include "drm.h" | 17 | #include <drm/drm_crtc_helper.h> |
18 | #include "drm_crtc_helper.h" | ||
19 | 18 | ||
20 | #include "mgag200_drv.h" | 19 | #include "mgag200_drv.h" |
21 | 20 | ||
diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c index b223dcb7a710..1504699666c4 100644 --- a/drivers/gpu/drm/mgag200/mgag200_ttm.c +++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c | |||
@@ -25,7 +25,7 @@ | |||
25 | /* | 25 | /* |
26 | * Authors: Dave Airlie <airlied@redhat.com> | 26 | * Authors: Dave Airlie <airlied@redhat.com> |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "mgag200_drv.h" | 29 | #include "mgag200_drv.h" |
30 | #include <ttm/ttm_page_alloc.h> | 30 | #include <ttm/ttm_page_alloc.h> |
31 | 31 | ||
diff --git a/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c b/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c index abb135f74953..acf818c58bf0 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c | |||
@@ -216,7 +216,7 @@ nouveau_gpio_isr_del(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, | |||
216 | spin_unlock_irqrestore(&gpio->lock, flags); | 216 | spin_unlock_irqrestore(&gpio->lock, flags); |
217 | 217 | ||
218 | list_for_each_entry_safe(isr, tmp, &tofree, head) { | 218 | list_for_each_entry_safe(isr, tmp, &tofree, head) { |
219 | flush_work_sync(&isr->work); | 219 | flush_work(&isr->work); |
220 | kfree(isr); | 220 | kfree(isr); |
221 | } | 221 | } |
222 | } | 222 | } |
diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c index e7369c8239d3..48783e14114c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_acpi.c +++ b/drivers/gpu/drm/nouveau/nouveau_acpi.c | |||
@@ -9,7 +9,7 @@ | |||
9 | 9 | ||
10 | #include <linux/vga_switcheroo.h> | 10 | #include <linux/vga_switcheroo.h> |
11 | 11 | ||
12 | #include "drm_edid.h" | 12 | #include <drm/drm_edid.h> |
13 | 13 | ||
14 | #include "nouveau_drm.h" | 14 | #include "nouveau_drm.h" |
15 | #include "nouveau_acpi.h" | 15 | #include "nouveau_acpi.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index f6b7fa39d312..09fdef235882 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c | |||
@@ -24,7 +24,8 @@ | |||
24 | 24 | ||
25 | #include <subdev/bios.h> | 25 | #include <subdev/bios.h> |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | |||
28 | #include "nouveau_drm.h" | 29 | #include "nouveau_drm.h" |
29 | #include "nouveau_reg.h" | 30 | #include "nouveau_reg.h" |
30 | #include "nouveau_hw.h" | 31 | #include "nouveau_hw.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_calc.c b/drivers/gpu/drm/nouveau/nouveau_calc.c index 77959526b5f3..6da576445b3d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_calc.c +++ b/drivers/gpu/drm/nouveau/nouveau_calc.c | |||
@@ -21,7 +21,8 @@ | |||
21 | * SOFTWARE. | 21 | * SOFTWARE. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include "drmP.h" | 24 | #include <drm/drmP.h> |
25 | |||
25 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
26 | #include "nouveau_reg.h" | 27 | #include "nouveau_reg.h" |
27 | #include "nouveau_hw.h" | 28 | #include "nouveau_hw.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 702e2a74d2d1..9a6e2cb282dc 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c | |||
@@ -26,9 +26,9 @@ | |||
26 | 26 | ||
27 | #include <acpi/button.h> | 27 | #include <acpi/button.h> |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "drm_edid.h" | 30 | #include <drm/drm_edid.h> |
31 | #include "drm_crtc_helper.h" | 31 | #include <drm/drm_crtc_helper.h> |
32 | 32 | ||
33 | #include "nouveau_reg.h" | 33 | #include "nouveau_reg.h" |
34 | #include "nouveau_drm.h" | 34 | #include "nouveau_drm.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.h b/drivers/gpu/drm/nouveau/nouveau_connector.h index 9503cfa0492c..ebdb87670a8f 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.h +++ b/drivers/gpu/drm/nouveau/nouveau_connector.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #ifndef __NOUVEAU_CONNECTOR_H__ | 27 | #ifndef __NOUVEAU_CONNECTOR_H__ |
28 | #define __NOUVEAU_CONNECTOR_H__ | 28 | #define __NOUVEAU_CONNECTOR_H__ |
29 | 29 | ||
30 | #include "drm_edid.h" | 30 | #include <drm/drm_edid.h> |
31 | 31 | ||
32 | struct nouveau_i2c_port; | 32 | struct nouveau_i2c_port; |
33 | 33 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 61f370d000e9..8f98e5a8c488 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | 29 | ||
30 | #include "nouveau_fbcon.h" | 30 | #include "nouveau_fbcon.h" |
31 | #include "nouveau_hw.h" | 31 | #include "nouveau_hw.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c index 72266ae91fa1..978a108ba7a1 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dp.c +++ b/drivers/gpu/drm/nouveau/nouveau_dp.c | |||
@@ -22,8 +22,8 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "drm_dp_helper.h" | 26 | #include <drm/drm_dp_helper.h> |
27 | 27 | ||
28 | #include "nouveau_drm.h" | 28 | #include "nouveau_drm.h" |
29 | #include "nouveau_connector.h" | 29 | #include "nouveau_connector.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index e96507e11488..ccae8c26ae2b 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c | |||
@@ -500,7 +500,7 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) | |||
500 | char name[16]; | 500 | char name[16]; |
501 | int ret; | 501 | int ret; |
502 | 502 | ||
503 | snprintf(name, sizeof(name), "%d", fpriv->pid); | 503 | snprintf(name, sizeof(name), "%d", pid_nr(fpriv->pid)); |
504 | 504 | ||
505 | ret = nouveau_cli_create(pdev, name, sizeof(*cli), (void **)&cli); | 505 | ret = nouveau_cli_create(pdev, name, sizeof(*cli), (void **)&cli); |
506 | if (ret) | 506 | if (ret) |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h index 3c12e9862e37..819471217546 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h +++ b/drivers/gpu/drm/nouveau/nouveau_drm.h | |||
@@ -19,12 +19,12 @@ | |||
19 | #include <drmP.h> | 19 | #include <drmP.h> |
20 | #include <drm/nouveau_drm.h> | 20 | #include <drm/nouveau_drm.h> |
21 | 21 | ||
22 | #include "ttm/ttm_bo_api.h" | 22 | #include <drm/ttm/ttm_bo_api.h> |
23 | #include "ttm/ttm_bo_driver.h" | 23 | #include <drm/ttm/ttm_bo_driver.h> |
24 | #include "ttm/ttm_placement.h" | 24 | #include <drm/ttm/ttm_placement.h> |
25 | #include "ttm/ttm_memory.h" | 25 | #include <drm/ttm/ttm_memory.h> |
26 | #include "ttm/ttm_module.h" | 26 | #include <drm/ttm/ttm_module.h> |
27 | #include "ttm/ttm_page_alloc.h" | 27 | #include <drm/ttm/ttm_page_alloc.h> |
28 | 28 | ||
29 | struct nouveau_channel; | 29 | struct nouveau_channel; |
30 | 30 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_encoder.h b/drivers/gpu/drm/nouveau/nouveau_encoder.h index 5b5d0148f8bf..6a17bf2ba9a4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_encoder.h +++ b/drivers/gpu/drm/nouveau/nouveau_encoder.h | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include <subdev/bios/dcb.h> | 30 | #include <subdev/bios/dcb.h> |
31 | 31 | ||
32 | #include "drm_encoder_slave.h" | 32 | #include <drm/drm_encoder_slave.h> |
33 | #include "nv04_display.h" | 33 | #include "nv04_display.h" |
34 | 34 | ||
35 | #define NV_DPMS_CLEARED 0x80 | 35 | #define NV_DPMS_CLEARED 0x80 |
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index e75e071845b7..67a1a069de28 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c | |||
@@ -38,11 +38,10 @@ | |||
38 | #include <linux/vga_switcheroo.h> | 38 | #include <linux/vga_switcheroo.h> |
39 | #include <linux/console.h> | 39 | #include <linux/console.h> |
40 | 40 | ||
41 | #include "drmP.h" | 41 | #include <drm/drmP.h> |
42 | #include "drm.h" | 42 | #include <drm/drm_crtc.h> |
43 | #include "drm_crtc.h" | 43 | #include <drm/drm_crtc_helper.h> |
44 | #include "drm_crtc_helper.h" | 44 | #include <drm/drm_fb_helper.h> |
45 | #include "drm_fb_helper.h" | ||
46 | 45 | ||
47 | #include "nouveau_drm.h" | 46 | #include "nouveau_drm.h" |
48 | #include "nouveau_gem.h" | 47 | #include "nouveau_gem.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.h b/drivers/gpu/drm/nouveau/nouveau_fbcon.h index 18e028008225..fdfc0c94fbcc 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.h +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #ifndef __NOUVEAU_FBCON_H__ | 27 | #ifndef __NOUVEAU_FBCON_H__ |
28 | #define __NOUVEAU_FBCON_H__ | 28 | #define __NOUVEAU_FBCON_H__ |
29 | 29 | ||
30 | #include "drm_fb_helper.h" | 30 | #include <drm/drm_fb_helper.h> |
31 | 31 | ||
32 | #include "nouveau_display.h" | 32 | #include "nouveau_display.h" |
33 | 33 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c b/drivers/gpu/drm/nouveau/nouveau_fence.c index 5b5471ba6eda..1d049be79f74 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fence.c +++ b/drivers/gpu/drm/nouveau/nouveau_fence.c | |||
@@ -24,8 +24,7 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm.h" | ||
29 | 28 | ||
30 | #include <linux/ktime.h> | 29 | #include <linux/ktime.h> |
31 | #include <linux/hrtimer.h> | 30 | #include <linux/hrtimer.h> |
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index 6454370e78cf..5e2f52158f19 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c | |||
@@ -25,7 +25,6 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include <linux/dma-buf.h> | 27 | #include <linux/dma-buf.h> |
28 | #include <nouveau_drm.h> | ||
29 | 28 | ||
30 | #include <subdev/fb.h> | 29 | #include <subdev/fb.h> |
31 | 30 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.h b/drivers/gpu/drm/nouveau/nouveau_gem.h index 085ece91c395..5c1049236d22 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.h +++ b/drivers/gpu/drm/nouveau/nouveau_gem.h | |||
@@ -1,9 +1,9 @@ | |||
1 | #ifndef __NOUVEAU_GEM_H__ | 1 | #ifndef __NOUVEAU_GEM_H__ |
2 | #define __NOUVEAU_GEM_H__ | 2 | #define __NOUVEAU_GEM_H__ |
3 | 3 | ||
4 | #include "drmP.h" | 4 | #include <drm/drmP.h> |
5 | 5 | ||
6 | #include <nouveau_drm.h> | 6 | #include "nouveau_drm.h" |
7 | #include "nouveau_bo.h" | 7 | #include "nouveau_bo.h" |
8 | 8 | ||
9 | #define nouveau_bo_tile_layout(nvbo) \ | 9 | #define nouveau_bo_tile_layout(nvbo) \ |
diff --git a/drivers/gpu/drm/nouveau/nouveau_hdmi.c b/drivers/gpu/drm/nouveau/nouveau_hdmi.c index ea712b5762e7..2c672cebc889 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hdmi.c +++ b/drivers/gpu/drm/nouveau/nouveau_hdmi.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
27 | #include "nouveau_connector.h" | 27 | #include "nouveau_connector.h" |
28 | #include "nouveau_encoder.h" | 28 | #include "nouveau_encoder.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.c b/drivers/gpu/drm/nouveau/nouveau_hw.c index a78b24704794..617a06ffdb46 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hw.c +++ b/drivers/gpu/drm/nouveau/nouveau_hw.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * SOFTWARE. | 22 | * SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
27 | #include "nouveau_hw.h" | 27 | #include "nouveau_hw.h" |
28 | 28 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.h b/drivers/gpu/drm/nouveau/nouveau_hw.h index ba8fc0f9e0db..7dff1021fab4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hw.h +++ b/drivers/gpu/drm/nouveau/nouveau_hw.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #ifndef __NOUVEAU_HW_H__ | 23 | #ifndef __NOUVEAU_HW_H__ |
24 | #define __NOUVEAU_HW_H__ | 24 | #define __NOUVEAU_HW_H__ |
25 | 25 | ||
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "nv04_display.h" | 27 | #include "nv04_display.h" |
28 | 28 | ||
29 | #include <subdev/bios/pll.h> | 29 | #include <subdev/bios/pll.h> |
diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c b/drivers/gpu/drm/nouveau/nouveau_ioc32.c index 6ac560ee478c..08214bcdcb12 100644 --- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c +++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c | |||
@@ -33,8 +33,7 @@ | |||
33 | 33 | ||
34 | #include <linux/compat.h> | 34 | #include <linux/compat.h> |
35 | 35 | ||
36 | #include "drmP.h" | 36 | #include <drm/drmP.h> |
37 | #include "drm.h" | ||
38 | 37 | ||
39 | #include "nouveau_ioctl.h" | 38 | #include "nouveau_ioctl.h" |
40 | 39 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_perf.c b/drivers/gpu/drm/nouveau/nouveau_perf.c index a11d2e4f8f6e..4fe883c54918 100644 --- a/drivers/gpu/drm/nouveau/nouveau_perf.c +++ b/drivers/gpu/drm/nouveau/nouveau_perf.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | 26 | ||
27 | #include "nouveau_drm.h" | 27 | #include "nouveau_drm.h" |
28 | #include "nouveau_reg.h" | 28 | #include "nouveau_reg.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c index b9d5335df742..0bf64c90aa20 100644 --- a/drivers/gpu/drm/nouveau/nouveau_pm.c +++ b/drivers/gpu/drm/nouveau/nouveau_pm.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/hwmon.h> | 29 | #include <linux/hwmon.h> |
30 | #include <linux/hwmon-sysfs.h> | 30 | #include <linux/hwmon-sysfs.h> |
31 | 31 | ||
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | 33 | ||
34 | #include "nouveau_drm.h" | 34 | #include "nouveau_drm.h" |
35 | #include "nouveau_pm.h" | 35 | #include "nouveau_pm.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_prime.c b/drivers/gpu/drm/nouveau/nouveau_prime.c index 4ffa655545e5..366462cf8a2c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_prime.c +++ b/drivers/gpu/drm/nouveau/nouveau_prime.c | |||
@@ -24,8 +24,7 @@ | |||
24 | 24 | ||
25 | #include <linux/dma-buf.h> | 25 | #include <linux/dma-buf.h> |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm.h" | ||
29 | 28 | ||
30 | #include "nouveau_drm.h" | 29 | #include "nouveau_drm.h" |
31 | #include "nouveau_gem.h" | 30 | #include "nouveau_gem.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c index 7bf7d131eee0..6f0ac64873df 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vga.c +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c | |||
@@ -1,8 +1,8 @@ | |||
1 | #include <linux/vgaarb.h> | 1 | #include <linux/vgaarb.h> |
2 | #include <linux/vga_switcheroo.h> | 2 | #include <linux/vga_switcheroo.h> |
3 | 3 | ||
4 | #include "drmP.h" | 4 | #include <drm/drmP.h> |
5 | #include "drm_crtc_helper.h" | 5 | #include <drm/drm_crtc_helper.h> |
6 | 6 | ||
7 | #include "nouveau_drm.h" | 7 | #include "nouveau_drm.h" |
8 | #include "nouveau_acpi.h" | 8 | #include "nouveau_acpi.h" |
diff --git a/drivers/gpu/drm/nouveau/nouveau_volt.c b/drivers/gpu/drm/nouveau/nouveau_volt.c index c2cc8e2d6539..9976414cbe50 100644 --- a/drivers/gpu/drm/nouveau/nouveau_volt.c +++ b/drivers/gpu/drm/nouveau/nouveau_volt.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | 26 | ||
27 | #include "nouveau_drm.h" | 27 | #include "nouveau_drm.h" |
28 | #include "nouveau_pm.h" | 28 | #include "nouveau_pm.h" |
diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c index 8b8a9d3d9e8b..82a0d9c6cda3 100644 --- a/drivers/gpu/drm/nouveau/nv04_crtc.c +++ b/drivers/gpu/drm/nouveau/nv04_crtc.c | |||
@@ -23,8 +23,8 @@ | |||
23 | * DEALINGS IN THE SOFTWARE. | 23 | * DEALINGS IN THE SOFTWARE. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm_crtc_helper.h" | 27 | #include <drm/drm_crtc_helper.h> |
28 | 28 | ||
29 | #include "nouveau_drm.h" | 29 | #include "nouveau_drm.h" |
30 | #include "nouveau_reg.h" | 30 | #include "nouveau_reg.h" |
diff --git a/drivers/gpu/drm/nouveau/nv04_cursor.c b/drivers/gpu/drm/nouveau/nv04_cursor.c index d2ea8b460364..fe86f0de348f 100644 --- a/drivers/gpu/drm/nouveau/nv04_cursor.c +++ b/drivers/gpu/drm/nouveau/nv04_cursor.c | |||
@@ -1,5 +1,5 @@ | |||
1 | #include "drmP.h" | 1 | #include <drm/drmP.h> |
2 | #include "drm_mode.h" | 2 | #include <drm/drm_mode.h> |
3 | #include "nouveau_drm.h" | 3 | #include "nouveau_drm.h" |
4 | #include "nouveau_reg.h" | 4 | #include "nouveau_reg.h" |
5 | #include "nouveau_crtc.h" | 5 | #include "nouveau_crtc.h" |
diff --git a/drivers/gpu/drm/nouveau/nv04_dac.c b/drivers/gpu/drm/nouveau/nv04_dac.c index 336f953084f9..347a3bd78d04 100644 --- a/drivers/gpu/drm/nouveau/nv04_dac.c +++ b/drivers/gpu/drm/nouveau/nv04_dac.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * DEALINGS IN THE SOFTWARE. | 24 | * DEALINGS IN THE SOFTWARE. |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | 29 | ||
30 | #include "nouveau_drm.h" | 30 | #include "nouveau_drm.h" |
31 | #include "nouveau_encoder.h" | 31 | #include "nouveau_encoder.h" |
diff --git a/drivers/gpu/drm/nouveau/nv04_dfp.c b/drivers/gpu/drm/nouveau/nv04_dfp.c index e53df742cc01..da55d7642c8c 100644 --- a/drivers/gpu/drm/nouveau/nv04_dfp.c +++ b/drivers/gpu/drm/nouveau/nv04_dfp.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * DEALINGS IN THE SOFTWARE. | 24 | * DEALINGS IN THE SOFTWARE. |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | 29 | ||
30 | #include "nouveau_drm.h" | 30 | #include "nouveau_drm.h" |
31 | #include "nouveau_reg.h" | 31 | #include "nouveau_reg.h" |
@@ -35,7 +35,7 @@ | |||
35 | #include "nouveau_hw.h" | 35 | #include "nouveau_hw.h" |
36 | #include "nvreg.h" | 36 | #include "nvreg.h" |
37 | 37 | ||
38 | #include "i2c/sil164.h" | 38 | #include <drm/i2c/sil164.h> |
39 | 39 | ||
40 | #include <subdev/i2c.h> | 40 | #include <subdev/i2c.h> |
41 | 41 | ||
diff --git a/drivers/gpu/drm/nouveau/nv04_display.c b/drivers/gpu/drm/nouveau/nv04_display.c index b25b8d9c2fcc..846050f04c23 100644 --- a/drivers/gpu/drm/nouveau/nv04_display.c +++ b/drivers/gpu/drm/nouveau/nv04_display.c | |||
@@ -22,9 +22,8 @@ | |||
22 | * Author: Ben Skeggs | 22 | * Author: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "drm.h" | 26 | #include <drm/drm_crtc_helper.h> |
27 | #include "drm_crtc_helper.h" | ||
28 | 27 | ||
29 | #include "nouveau_drm.h" | 28 | #include "nouveau_drm.h" |
30 | #include "nouveau_reg.h" | 29 | #include "nouveau_reg.h" |
diff --git a/drivers/gpu/drm/nouveau/nv04_pm.c b/drivers/gpu/drm/nouveau/nv04_pm.c index 410be011c2f0..2a0cc9d0614a 100644 --- a/drivers/gpu/drm/nouveau/nv04_pm.c +++ b/drivers/gpu/drm/nouveau/nv04_pm.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
27 | #include "nouveau_reg.h" | 27 | #include "nouveau_reg.h" |
28 | #include "nouveau_hw.h" | 28 | #include "nouveau_hw.h" |
diff --git a/drivers/gpu/drm/nouveau/nv04_tv.c b/drivers/gpu/drm/nouveau/nv04_tv.c index 45c5c039e7e4..099fbeda6e2e 100644 --- a/drivers/gpu/drm/nouveau/nv04_tv.c +++ b/drivers/gpu/drm/nouveau/nv04_tv.c | |||
@@ -24,16 +24,16 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "nouveau_drm.h" | 28 | #include "nouveau_drm.h" |
29 | #include "nouveau_reg.h" | 29 | #include "nouveau_reg.h" |
30 | #include "nouveau_encoder.h" | 30 | #include "nouveau_encoder.h" |
31 | #include "nouveau_connector.h" | 31 | #include "nouveau_connector.h" |
32 | #include "nouveau_crtc.h" | 32 | #include "nouveau_crtc.h" |
33 | #include "nouveau_hw.h" | 33 | #include "nouveau_hw.h" |
34 | #include "drm_crtc_helper.h" | 34 | #include <drm/drm_crtc_helper.h> |
35 | 35 | ||
36 | #include "i2c/ch7006.h" | 36 | #include <drm/i2c/ch7006.h> |
37 | 37 | ||
38 | #include <subdev/i2c.h> | 38 | #include <subdev/i2c.h> |
39 | 39 | ||
diff --git a/drivers/gpu/drm/nouveau/nv17_tv.c b/drivers/gpu/drm/nouveau/nv17_tv.c index dd85f0f79acf..897b63621e2d 100644 --- a/drivers/gpu/drm/nouveau/nv17_tv.c +++ b/drivers/gpu/drm/nouveau/nv17_tv.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | #include "nouveau_drm.h" | 29 | #include "nouveau_drm.h" |
30 | #include "nouveau_reg.h" | 30 | #include "nouveau_reg.h" |
31 | #include "nouveau_encoder.h" | 31 | #include "nouveau_encoder.h" |
diff --git a/drivers/gpu/drm/nouveau/nv17_tv_modes.c b/drivers/gpu/drm/nouveau/nv17_tv_modes.c index a4c4b0c2c7ce..1cdfe2a5875d 100644 --- a/drivers/gpu/drm/nouveau/nv17_tv_modes.c +++ b/drivers/gpu/drm/nouveau/nv17_tv_modes.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | #include "nouveau_drm.h" | 29 | #include "nouveau_drm.h" |
30 | #include "nouveau_encoder.h" | 30 | #include "nouveau_encoder.h" |
31 | #include "nouveau_crtc.h" | 31 | #include "nouveau_crtc.h" |
diff --git a/drivers/gpu/drm/nouveau/nv40_pm.c b/drivers/gpu/drm/nouveau/nv40_pm.c index e9b81a97c481..3382064c7f33 100644 --- a/drivers/gpu/drm/nouveau/nv40_pm.c +++ b/drivers/gpu/drm/nouveau/nv40_pm.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
27 | #include "nouveau_bios.h" | 27 | #include "nouveau_bios.h" |
28 | #include "nouveau_pm.h" | 28 | #include "nouveau_pm.h" |
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c index a771e9067ebf..222de77d6269 100644 --- a/drivers/gpu/drm/nouveau/nv50_crtc.c +++ b/drivers/gpu/drm/nouveau/nv50_crtc.c | |||
@@ -24,9 +24,8 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_mode.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | #include "drm_crtc_helper.h" | ||
30 | 29 | ||
31 | #include "nouveau_reg.h" | 30 | #include "nouveau_reg.h" |
32 | #include "nouveau_drm.h" | 31 | #include "nouveau_drm.h" |
diff --git a/drivers/gpu/drm/nouveau/nv50_cursor.c b/drivers/gpu/drm/nouveau/nv50_cursor.c index ba047e9251b3..223da113ceee 100644 --- a/drivers/gpu/drm/nouveau/nv50_cursor.c +++ b/drivers/gpu/drm/nouveau/nv50_cursor.c | |||
@@ -24,8 +24,7 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_mode.h" | ||
29 | 28 | ||
30 | #include "nouveau_drm.h" | 29 | #include "nouveau_drm.h" |
31 | #include "nouveau_dma.h" | 30 | #include "nouveau_dma.h" |
diff --git a/drivers/gpu/drm/nouveau/nv50_dac.c b/drivers/gpu/drm/nouveau/nv50_dac.c index 4a01b49d5ece..6a30a1748573 100644 --- a/drivers/gpu/drm/nouveau/nv50_dac.c +++ b/drivers/gpu/drm/nouveau/nv50_dac.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | 29 | ||
30 | #define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) | 30 | #define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) |
31 | #include "nouveau_reg.h" | 31 | #include "nouveau_reg.h" |
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 787ddc9f314c..f97b42cbb6bb 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include "nouveau_encoder.h" | 32 | #include "nouveau_encoder.h" |
33 | #include "nouveau_connector.h" | 33 | #include "nouveau_connector.h" |
34 | #include "nouveau_fbcon.h" | 34 | #include "nouveau_fbcon.h" |
35 | #include "drm_crtc_helper.h" | 35 | #include <drm/drm_crtc_helper.h> |
36 | #include "nouveau_fence.h" | 36 | #include "nouveau_fence.h" |
37 | 37 | ||
38 | #include <core/gpuobj.h> | 38 | #include <core/gpuobj.h> |
diff --git a/drivers/gpu/drm/nouveau/nv50_evo.c b/drivers/gpu/drm/nouveau/nv50_evo.c index 0f534160c021..9f6f55cdfa77 100644 --- a/drivers/gpu/drm/nouveau/nv50_evo.c +++ b/drivers/gpu/drm/nouveau/nv50_evo.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | 26 | ||
27 | #include "nouveau_drm.h" | 27 | #include "nouveau_drm.h" |
28 | #include "nouveau_dma.h" | 28 | #include "nouveau_dma.h" |
diff --git a/drivers/gpu/drm/nouveau/nv50_pm.c b/drivers/gpu/drm/nouveau/nv50_pm.c index 7724eae5db98..c4a65039b1ca 100644 --- a/drivers/gpu/drm/nouveau/nv50_pm.c +++ b/drivers/gpu/drm/nouveau/nv50_pm.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
27 | #include "nouveau_bios.h" | 27 | #include "nouveau_bios.h" |
28 | #include "nouveau_hw.h" | 28 | #include "nouveau_hw.h" |
diff --git a/drivers/gpu/drm/nouveau/nv50_sor.c b/drivers/gpu/drm/nouveau/nv50_sor.c index 48644e379e86..b562b59e1326 100644 --- a/drivers/gpu/drm/nouveau/nv50_sor.c +++ b/drivers/gpu/drm/nouveau/nv50_sor.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * | 24 | * |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | 29 | ||
30 | #define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) | 30 | #define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) |
31 | #include "nouveau_reg.h" | 31 | #include "nouveau_reg.h" |
diff --git a/drivers/gpu/drm/nouveau/nva3_pm.c b/drivers/gpu/drm/nouveau/nva3_pm.c index 3f69e46436cf..863f010fafeb 100644 --- a/drivers/gpu/drm/nouveau/nva3_pm.c +++ b/drivers/gpu/drm/nouveau/nva3_pm.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "nouveau_drm.h" | 26 | #include "nouveau_drm.h" |
27 | #include "nouveau_bios.h" | 27 | #include "nouveau_bios.h" |
28 | #include "nouveau_pm.h" | 28 | #include "nouveau_pm.h" |
diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c index 37037bc33266..c402fca2b2b8 100644 --- a/drivers/gpu/drm/nouveau/nvd0_display.c +++ b/drivers/gpu/drm/nouveau/nvd0_display.c | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | #include <linux/dma-mapping.h> | 25 | #include <linux/dma-mapping.h> |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | 29 | ||
30 | #include "nouveau_drm.h" | 30 | #include "nouveau_drm.h" |
31 | #include "nouveau_dma.h" | 31 | #include "nouveau_dma.h" |
diff --git a/drivers/gpu/drm/r128/r128_cce.c b/drivers/gpu/drm/r128/r128_cce.c index bcac90b543ad..d4660cf942a5 100644 --- a/drivers/gpu/drm/r128/r128_cce.c +++ b/drivers/gpu/drm/r128/r128_cce.c | |||
@@ -34,9 +34,8 @@ | |||
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <linux/module.h> | 35 | #include <linux/module.h> |
36 | 36 | ||
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | #include "drm.h" | 38 | #include <drm/r128_drm.h> |
39 | #include "r128_drm.h" | ||
40 | #include "r128_drv.h" | 39 | #include "r128_drv.h" |
41 | 40 | ||
42 | #define R128_FIFO_DEBUG 0 | 41 | #define R128_FIFO_DEBUG 0 |
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c index 2666a5308ab9..472c38fe123f 100644 --- a/drivers/gpu/drm/r128/r128_drv.c +++ b/drivers/gpu/drm/r128/r128_drv.c | |||
@@ -31,12 +31,11 @@ | |||
31 | 31 | ||
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/r128_drm.h> |
36 | #include "r128_drm.h" | ||
37 | #include "r128_drv.h" | 36 | #include "r128_drv.h" |
38 | 37 | ||
39 | #include "drm_pciids.h" | 38 | #include <drm/drm_pciids.h> |
40 | 39 | ||
41 | static struct pci_device_id pciidlist[] = { | 40 | static struct pci_device_id pciidlist[] = { |
42 | r128_PCI_IDS | 41 | r128_PCI_IDS |
diff --git a/drivers/gpu/drm/r128/r128_ioc32.c b/drivers/gpu/drm/r128/r128_ioc32.c index 51c99fc4dd38..a954c548201e 100644 --- a/drivers/gpu/drm/r128/r128_ioc32.c +++ b/drivers/gpu/drm/r128/r128_ioc32.c | |||
@@ -31,9 +31,8 @@ | |||
31 | */ | 31 | */ |
32 | #include <linux/compat.h> | 32 | #include <linux/compat.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/r128_drm.h> |
36 | #include "r128_drm.h" | ||
37 | 36 | ||
38 | typedef struct drm_r128_init32 { | 37 | typedef struct drm_r128_init32 { |
39 | int func; | 38 | int func; |
diff --git a/drivers/gpu/drm/r128/r128_irq.c b/drivers/gpu/drm/r128/r128_irq.c index 429d5a02695f..2ea4f09d2691 100644 --- a/drivers/gpu/drm/r128/r128_irq.c +++ b/drivers/gpu/drm/r128/r128_irq.c | |||
@@ -30,9 +30,8 @@ | |||
30 | * Eric Anholt <anholt@FreeBSD.org> | 30 | * Eric Anholt <anholt@FreeBSD.org> |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "drm.h" | 34 | #include <drm/r128_drm.h> |
35 | #include "r128_drm.h" | ||
36 | #include "r128_drv.h" | 35 | #include "r128_drv.h" |
37 | 36 | ||
38 | u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) | 37 | u32 r128_get_vblank_counter(struct drm_device *dev, int crtc) |
diff --git a/drivers/gpu/drm/r128/r128_state.c b/drivers/gpu/drm/r128/r128_state.c index a9e33ce65918..19bb7e6f3d9a 100644 --- a/drivers/gpu/drm/r128/r128_state.c +++ b/drivers/gpu/drm/r128/r128_state.c | |||
@@ -28,9 +28,8 @@ | |||
28 | * Gareth Hughes <gareth@valinux.com> | 28 | * Gareth Hughes <gareth@valinux.com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | 32 | #include <drm/r128_drm.h> |
33 | #include "r128_drm.h" | ||
34 | #include "r128_drv.h" | 33 | #include "r128_drv.h" |
35 | 34 | ||
36 | /* ================================================================ | 35 | /* ================================================================ |
diff --git a/drivers/gpu/drm/radeon/atom.h b/drivers/gpu/drm/radeon/atom.h index 25fea631dad2..feba6b8d36b3 100644 --- a/drivers/gpu/drm/radeon/atom.h +++ b/drivers/gpu/drm/radeon/atom.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #define ATOM_H | 26 | #define ATOM_H |
27 | 27 | ||
28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | 30 | ||
31 | #define ATOM_BIOS_MAGIC 0xAA55 | 31 | #define ATOM_BIOS_MAGIC 0xAA55 |
32 | #define ATOM_ATI_MAGIC_PTR 0x30 | 32 | #define ATOM_ATI_MAGIC_PTR 0x30 |
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index d48224b0d6b4..d5699fe4f1e8 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c | |||
@@ -24,13 +24,13 @@ | |||
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | * Jerome Glisse | 25 | * Jerome Glisse |
26 | */ | 26 | */ |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | 30 | ||
31 | #include "atom.h" | 31 | #include "atom.h" |
32 | #include "atom-bits.h" | 32 | #include "atom-bits.h" |
33 | #include "drm_dp_helper.h" | 33 | #include <drm/drm_dp_helper.h> |
34 | 34 | ||
35 | /* move these to drm_dp_helper.c/h */ | 35 | /* move these to drm_dp_helper.c/h */ |
36 | #define DP_LINK_CONFIGURATION_SIZE 9 | 36 | #define DP_LINK_CONFIGURATION_SIZE 9 |
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index 806cbcc94fdd..49cbb3795a10 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c | |||
@@ -23,9 +23,9 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm_crtc_helper.h" | 27 | #include <drm/drm_crtc_helper.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "atom.h" | 30 | #include "atom.h" |
31 | #include <linux/backlight.h> | 31 | #include <linux/backlight.h> |
diff --git a/drivers/gpu/drm/radeon/atombios_i2c.c b/drivers/gpu/drm/radeon/atombios_i2c.c index 44d87b6b4220..082338df708a 100644 --- a/drivers/gpu/drm/radeon/atombios_i2c.c +++ b/drivers/gpu/drm/radeon/atombios_i2c.c | |||
@@ -22,8 +22,8 @@ | |||
22 | * Authors: Alex Deucher | 22 | * Authors: Alex Deucher |
23 | * | 23 | * |
24 | */ | 24 | */ |
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "radeon_drm.h" | 26 | #include <drm/radeon_drm.h> |
27 | #include "radeon.h" | 27 | #include "radeon.h" |
28 | #include "atom.h" | 28 | #include "atom.h" |
29 | 29 | ||
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index c4ded396b78d..a1f49c5fd74b 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -24,10 +24,10 @@ | |||
24 | #include <linux/firmware.h> | 24 | #include <linux/firmware.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "radeon.h" | 28 | #include "radeon.h" |
29 | #include "radeon_asic.h" | 29 | #include "radeon_asic.h" |
30 | #include "radeon_drm.h" | 30 | #include <drm/radeon_drm.h> |
31 | #include "evergreend.h" | 31 | #include "evergreend.h" |
32 | #include "atom.h" | 32 | #include "atom.h" |
33 | #include "avivod.h" | 33 | #include "avivod.h" |
@@ -87,13 +87,9 @@ void evergreen_tiling_fields(unsigned tiling_flags, unsigned *bankw, | |||
87 | void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev) | 87 | void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev) |
88 | { | 88 | { |
89 | u16 ctl, v; | 89 | u16 ctl, v; |
90 | int cap, err; | 90 | int err; |
91 | 91 | ||
92 | cap = pci_pcie_cap(rdev->pdev); | 92 | err = pcie_capability_read_word(rdev->pdev, PCI_EXP_DEVCTL, &ctl); |
93 | if (!cap) | ||
94 | return; | ||
95 | |||
96 | err = pci_read_config_word(rdev->pdev, cap + PCI_EXP_DEVCTL, &ctl); | ||
97 | if (err) | 93 | if (err) |
98 | return; | 94 | return; |
99 | 95 | ||
@@ -105,7 +101,7 @@ void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev) | |||
105 | if ((v == 0) || (v == 6) || (v == 7)) { | 101 | if ((v == 0) || (v == 6) || (v == 7)) { |
106 | ctl &= ~PCI_EXP_DEVCTL_READRQ; | 102 | ctl &= ~PCI_EXP_DEVCTL_READRQ; |
107 | ctl |= (2 << 12); | 103 | ctl |= (2 << 12); |
108 | pci_write_config_word(rdev->pdev, cap + PCI_EXP_DEVCTL, ctl); | 104 | pcie_capability_write_word(rdev->pdev, PCI_EXP_DEVCTL, ctl); |
109 | } | 105 | } |
110 | } | 106 | } |
111 | 107 | ||
diff --git a/drivers/gpu/drm/radeon/evergreen_blit_kms.c b/drivers/gpu/drm/radeon/evergreen_blit_kms.c index 89cb9feb5653..057c87b6515a 100644 --- a/drivers/gpu/drm/radeon/evergreen_blit_kms.c +++ b/drivers/gpu/drm/radeon/evergreen_blit_kms.c | |||
@@ -24,9 +24,8 @@ | |||
24 | * Alex Deucher <alexander.deucher@amd.com> | 24 | * Alex Deucher <alexander.deucher@amd.com> |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon_drm.h" | ||
30 | #include "radeon.h" | 29 | #include "radeon.h" |
31 | 30 | ||
32 | #include "evergreend.h" | 31 | #include "evergreend.h" |
diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 2ceab2b52d69..573ed1bc6cf7 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "evergreend.h" | 30 | #include "evergreend.h" |
31 | #include "evergreen_reg_safe.h" | 31 | #include "evergreen_reg_safe.h" |
diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index 65c54160028b..327c08b54180 100644 --- a/drivers/gpu/drm/radeon/evergreen_hdmi.c +++ b/drivers/gpu/drm/radeon/evergreen_hdmi.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * Authors: Christian König | 24 | * Authors: Christian König |
25 | * Rafał Miłecki | 25 | * Rafał Miłecki |
26 | */ | 26 | */ |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "radeon_asic.h" | 30 | #include "radeon_asic.h" |
31 | #include "evergreend.h" | 31 | #include "evergreend.h" |
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 9a46f7d4e61f..8bcb554ea0c5 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c | |||
@@ -25,10 +25,10 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "radeon_asic.h" | 30 | #include "radeon_asic.h" |
31 | #include "radeon_drm.h" | 31 | #include <drm/radeon_drm.h> |
32 | #include "nid.h" | 32 | #include "nid.h" |
33 | #include "atom.h" | 33 | #include "atom.h" |
34 | #include "ni_reg.h" | 34 | #include "ni_reg.h" |
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index b41237bf884b..376884f1bcd2 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -27,9 +27,8 @@ | |||
27 | */ | 27 | */ |
28 | #include <linux/seq_file.h> | 28 | #include <linux/seq_file.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | 31 | #include <drm/radeon_drm.h> |
32 | #include "radeon_drm.h" | ||
33 | #include "radeon_reg.h" | 32 | #include "radeon_reg.h" |
34 | #include "radeon.h" | 33 | #include "radeon.h" |
35 | #include "radeon_asic.h" | 34 | #include "radeon_asic.h" |
diff --git a/drivers/gpu/drm/radeon/r200.c b/drivers/gpu/drm/radeon/r200.c index f0889259eb08..98143a5c5b73 100644 --- a/drivers/gpu/drm/radeon/r200.c +++ b/drivers/gpu/drm/radeon/r200.c | |||
@@ -25,9 +25,8 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm.h" | 29 | #include <drm/radeon_drm.h> |
30 | #include "radeon_drm.h" | ||
31 | #include "radeon_reg.h" | 30 | #include "radeon_reg.h" |
32 | #include "radeon.h" | 31 | #include "radeon.h" |
33 | #include "radeon_asic.h" | 32 | #include "radeon_asic.h" |
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 4949bfc14b58..d0ba6023a1f8 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include "radeon_reg.h" | 33 | #include "radeon_reg.h" |
34 | #include "radeon.h" | 34 | #include "radeon.h" |
35 | #include "radeon_asic.h" | 35 | #include "radeon_asic.h" |
36 | #include "radeon_drm.h" | 36 | #include <drm/radeon_drm.h> |
37 | #include "r100_track.h" | 37 | #include "r100_track.h" |
38 | #include "r300d.h" | 38 | #include "r300d.h" |
39 | #include "rv350d.h" | 39 | #include "rv350d.h" |
diff --git a/drivers/gpu/drm/radeon/r300_cmdbuf.c b/drivers/gpu/drm/radeon/r300_cmdbuf.c index 1fe98b421c9b..002ab038d2ab 100644 --- a/drivers/gpu/drm/radeon/r300_cmdbuf.c +++ b/drivers/gpu/drm/radeon/r300_cmdbuf.c | |||
@@ -31,10 +31,9 @@ | |||
31 | * Nicolai Haehnle <prefect_@gmx.net> | 31 | * Nicolai Haehnle <prefect_@gmx.net> |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/drm_buffer.h> |
36 | #include "drm_buffer.h" | 36 | #include <drm/radeon_drm.h> |
37 | #include "radeon_drm.h" | ||
38 | #include "radeon_drv.h" | 37 | #include "radeon_drv.h" |
39 | #include "r300_reg.h" | 38 | #include "r300_reg.h" |
40 | 39 | ||
diff --git a/drivers/gpu/drm/radeon/r420.c b/drivers/gpu/drm/radeon/r420.c index f2f5bf6d339f..6fce2eb4dd16 100644 --- a/drivers/gpu/drm/radeon/r420.c +++ b/drivers/gpu/drm/radeon/r420.c | |||
@@ -27,7 +27,7 @@ | |||
27 | */ | 27 | */ |
28 | #include <linux/seq_file.h> | 28 | #include <linux/seq_file.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "radeon_reg.h" | 31 | #include "radeon_reg.h" |
32 | #include "radeon.h" | 32 | #include "radeon.h" |
33 | #include "radeon_asic.h" | 33 | #include "radeon_asic.h" |
diff --git a/drivers/gpu/drm/radeon/r520.c b/drivers/gpu/drm/radeon/r520.c index 28b4f871aaf4..f795a4e092cb 100644 --- a/drivers/gpu/drm/radeon/r520.c +++ b/drivers/gpu/drm/radeon/r520.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "radeon_asic.h" | 30 | #include "radeon_asic.h" |
31 | #include "atom.h" | 31 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 39b743fff791..70c800ff6190 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -30,8 +30,8 @@ | |||
30 | #include <linux/firmware.h> | 30 | #include <linux/firmware.h> |
31 | #include <linux/platform_device.h> | 31 | #include <linux/platform_device.h> |
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "radeon_drm.h" | 34 | #include <drm/radeon_drm.h> |
35 | #include "radeon.h" | 35 | #include "radeon.h" |
36 | #include "radeon_asic.h" | 36 | #include "radeon_asic.h" |
37 | #include "radeon_mode.h" | 37 | #include "radeon_mode.h" |
diff --git a/drivers/gpu/drm/radeon/r600_audio.c b/drivers/gpu/drm/radeon/r600_audio.c index 79b55916cf90..cb03fe22b0ab 100644 --- a/drivers/gpu/drm/radeon/r600_audio.c +++ b/drivers/gpu/drm/radeon/r600_audio.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * | 23 | * |
24 | * Authors: Christian König | 24 | * Authors: Christian König |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "radeon.h" | 27 | #include "radeon.h" |
28 | #include "radeon_reg.h" | 28 | #include "radeon_reg.h" |
29 | #include "radeon_asic.h" | 29 | #include "radeon_asic.h" |
diff --git a/drivers/gpu/drm/radeon/r600_blit.c b/drivers/gpu/drm/radeon/r600_blit.c index 661fec2a2cc1..77da1f9c0b8e 100644 --- a/drivers/gpu/drm/radeon/r600_blit.c +++ b/drivers/gpu/drm/radeon/r600_blit.c | |||
@@ -23,9 +23,8 @@ | |||
23 | * Authors: | 23 | * Authors: |
24 | * Alex Deucher <alexander.deucher@amd.com> | 24 | * Alex Deucher <alexander.deucher@amd.com> |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm.h" | 27 | #include <drm/radeon_drm.h> |
28 | #include "radeon_drm.h" | ||
29 | #include "radeon_drv.h" | 28 | #include "radeon_drv.h" |
30 | 29 | ||
31 | #include "r600_blit_shaders.h" | 30 | #include "r600_blit_shaders.h" |
diff --git a/drivers/gpu/drm/radeon/r600_blit_kms.c b/drivers/gpu/drm/radeon/r600_blit_kms.c index 1c7ed3a5d045..e082dca6feee 100644 --- a/drivers/gpu/drm/radeon/r600_blit_kms.c +++ b/drivers/gpu/drm/radeon/r600_blit_kms.c | |||
@@ -23,9 +23,8 @@ | |||
23 | * | 23 | * |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm.h" | 27 | #include <drm/radeon_drm.h> |
28 | #include "radeon_drm.h" | ||
29 | #include "radeon.h" | 28 | #include "radeon.h" |
30 | 29 | ||
31 | #include "r600d.h" | 30 | #include "r600d.h" |
diff --git a/drivers/gpu/drm/radeon/r600_cp.c b/drivers/gpu/drm/radeon/r600_cp.c index 75ed17c96115..2514123d2d00 100644 --- a/drivers/gpu/drm/radeon/r600_cp.c +++ b/drivers/gpu/drm/radeon/r600_cp.c | |||
@@ -28,9 +28,8 @@ | |||
28 | 28 | ||
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm.h" | 32 | #include <drm/radeon_drm.h> |
33 | #include "radeon_drm.h" | ||
34 | #include "radeon_drv.h" | 33 | #include "radeon_drv.h" |
35 | 34 | ||
36 | #define PFP_UCODE_SIZE 576 | 35 | #define PFP_UCODE_SIZE 576 |
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 853f05ced1b1..211c40252fe0 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c | |||
@@ -26,7 +26,7 @@ | |||
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "radeon.h" | 30 | #include "radeon.h" |
31 | #include "r600d.h" | 31 | #include "r600d.h" |
32 | #include "r600_reg_safe.h" | 32 | #include "r600_reg_safe.h" |
diff --git a/drivers/gpu/drm/radeon/r600_hdmi.c b/drivers/gpu/drm/radeon/r600_hdmi.c index 857a7d7862fb..ff80efe9cb7d 100644 --- a/drivers/gpu/drm/radeon/r600_hdmi.c +++ b/drivers/gpu/drm/radeon/r600_hdmi.c | |||
@@ -23,8 +23,8 @@ | |||
23 | * | 23 | * |
24 | * Authors: Christian König | 24 | * Authors: Christian König |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "radeon_drm.h" | 27 | #include <drm/radeon_drm.h> |
28 | #include "radeon.h" | 28 | #include "radeon.h" |
29 | #include "radeon_asic.h" | 29 | #include "radeon_asic.h" |
30 | #include "r600d.h" | 30 | #include "r600d.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/drivers/gpu/drm/radeon/radeon_acpi.c index c3976eb341bf..b0a5688c67f8 100644 --- a/drivers/gpu/drm/radeon/radeon_acpi.c +++ b/drivers/gpu/drm/radeon/radeon_acpi.c | |||
@@ -29,10 +29,8 @@ | |||
29 | #include <acpi/acpi_bus.h> | 29 | #include <acpi/acpi_bus.h> |
30 | #include <acpi/video.h> | 30 | #include <acpi/video.h> |
31 | 31 | ||
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/drm_crtc_helper.h> |
34 | #include "drm_sarea.h" | ||
35 | #include "drm_crtc_helper.h" | ||
36 | #include "radeon.h" | 34 | #include "radeon.h" |
37 | #include "radeon_acpi.h" | 35 | #include "radeon_acpi.h" |
38 | #include "atom.h" | 36 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_agp.c b/drivers/gpu/drm/radeon/radeon_agp.c index bd2f33e5c91a..10ea17a6b2a6 100644 --- a/drivers/gpu/drm/radeon/radeon_agp.c +++ b/drivers/gpu/drm/radeon/radeon_agp.c | |||
@@ -24,10 +24,9 @@ | |||
24 | * Dave Airlie | 24 | * Dave Airlie |
25 | * Jerome Glisse <glisse@freedesktop.org> | 25 | * Jerome Glisse <glisse@freedesktop.org> |
26 | */ | 26 | */ |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "drm.h" | ||
29 | #include "radeon.h" | 28 | #include "radeon.h" |
30 | #include "radeon_drm.h" | 29 | #include <drm/radeon_drm.h> |
31 | 30 | ||
32 | #if __OS_HAS_AGP | 31 | #if __OS_HAS_AGP |
33 | 32 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 01b90b4f5e22..f22eb5713528 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c | |||
@@ -23,8 +23,8 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "radeon_drm.h" | 27 | #include <drm/radeon_drm.h> |
28 | #include "radeon.h" | 28 | #include "radeon.h" |
29 | 29 | ||
30 | #include "atom.h" | 30 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c index d306cc8fdeaa..b8015913d382 100644 --- a/drivers/gpu/drm/radeon/radeon_bios.c +++ b/drivers/gpu/drm/radeon/radeon_bios.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon_reg.h" | 29 | #include "radeon_reg.h" |
30 | #include "radeon.h" | 30 | #include "radeon.h" |
31 | #include "atom.h" | 31 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_clocks.c b/drivers/gpu/drm/radeon/radeon_clocks.c index 9c6b29a41927..38e396dae0a9 100644 --- a/drivers/gpu/drm/radeon/radeon_clocks.c +++ b/drivers/gpu/drm/radeon/radeon_clocks.c | |||
@@ -25,8 +25,8 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon_drm.h" | 29 | #include <drm/radeon_drm.h> |
30 | #include "radeon_reg.h" | 30 | #include "radeon_reg.h" |
31 | #include "radeon.h" | 31 | #include "radeon.h" |
32 | #include "atom.h" | 32 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 8a73f0758903..45b660b27cfc 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * Authors: Dave Airlie | 24 | * Authors: Dave Airlie |
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | */ | 26 | */ |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "atom.h" | 30 | #include "atom.h" |
31 | 31 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 69a142fc3d1d..67cfc1795ecd 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -23,11 +23,11 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm_edid.h" | 27 | #include <drm/drm_edid.h> |
28 | #include "drm_crtc_helper.h" | 28 | #include <drm/drm_crtc_helper.h> |
29 | #include "drm_fb_helper.h" | 29 | #include <drm/drm_fb_helper.h> |
30 | #include "radeon_drm.h" | 30 | #include <drm/radeon_drm.h> |
31 | #include "radeon.h" | 31 | #include "radeon.h" |
32 | #include "atom.h" | 32 | #include "atom.h" |
33 | 33 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c index ef67e181377b..8b2797dc7b64 100644 --- a/drivers/gpu/drm/radeon/radeon_cp.c +++ b/drivers/gpu/drm/radeon/radeon_cp.c | |||
@@ -31,10 +31,8 @@ | |||
31 | 31 | ||
32 | #include <linux/module.h> | 32 | #include <linux/module.h> |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "drm.h" | 35 | #include <drm/radeon_drm.h> |
36 | #include "drm_sarea.h" | ||
37 | #include "radeon_drm.h" | ||
38 | #include "radeon_drv.h" | 36 | #include "radeon_drv.h" |
39 | #include "r300_reg.h" | 37 | #include "r300_reg.h" |
40 | 38 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index d59eb59cdb81..cb7b7c062fef 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c | |||
@@ -24,8 +24,8 @@ | |||
24 | * Authors: | 24 | * Authors: |
25 | * Jerome Glisse <glisse@freedesktop.org> | 25 | * Jerome Glisse <glisse@freedesktop.org> |
26 | */ | 26 | */ |
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon_reg.h" | 29 | #include "radeon_reg.h" |
30 | #include "radeon.h" | 30 | #include "radeon.h" |
31 | 31 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c b/drivers/gpu/drm/radeon/radeon_cursor.c index 8794744cdf1a..0fe56c9f64bd 100644 --- a/drivers/gpu/drm/radeon/radeon_cursor.c +++ b/drivers/gpu/drm/radeon/radeon_cursor.c | |||
@@ -23,8 +23,8 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "radeon_drm.h" | 27 | #include <drm/radeon_drm.h> |
28 | #include "radeon.h" | 28 | #include "radeon.h" |
29 | 29 | ||
30 | #define CURSOR_WIDTH 64 | 30 | #define CURSOR_WIDTH 64 |
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 7ddef8f30d0e..bfa2a6015727 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c | |||
@@ -23,15 +23,15 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "radeon_drm.h" | 27 | #include <drm/radeon_drm.h> |
28 | #include "radeon.h" | 28 | #include "radeon.h" |
29 | 29 | ||
30 | #include "atom.h" | 30 | #include "atom.h" |
31 | #include <asm/div64.h> | 31 | #include <asm/div64.h> |
32 | 32 | ||
33 | #include "drm_crtc_helper.h" | 33 | #include <drm/drm_crtc_helper.h> |
34 | #include "drm_edid.h" | 34 | #include <drm/drm_edid.h> |
35 | 35 | ||
36 | static void avivo_crtc_load_lut(struct drm_crtc *crtc) | 36 | static void avivo_crtc_load_lut(struct drm_crtc *crtc) |
37 | { | 37 | { |
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 27ece75b4789..07eb84e8a8a4 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c | |||
@@ -29,12 +29,11 @@ | |||
29 | * OTHER DEALINGS IN THE SOFTWARE. | 29 | * OTHER DEALINGS IN THE SOFTWARE. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/radeon_drm.h> |
34 | #include "radeon_drm.h" | ||
35 | #include "radeon_drv.h" | 34 | #include "radeon_drv.h" |
36 | 35 | ||
37 | #include "drm_pciids.h" | 36 | #include <drm/drm_pciids.h> |
38 | #include <linux/console.h> | 37 | #include <linux/console.h> |
39 | #include <linux/module.h> | 38 | #include <linux/module.h> |
40 | 39 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index e66c807df9e6..bd4959ca23aa 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c | |||
@@ -23,9 +23,9 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm_crtc_helper.h" | 27 | #include <drm/drm_crtc_helper.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "atom.h" | 30 | #include "atom.h" |
31 | 31 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 6ada72c6d7a1..cc8489d8c6d1 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c | |||
@@ -27,14 +27,13 @@ | |||
27 | #include <linux/slab.h> | 27 | #include <linux/slab.h> |
28 | #include <linux/fb.h> | 28 | #include <linux/fb.h> |
29 | 29 | ||
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | 31 | #include <drm/drm_crtc.h> |
32 | #include "drm_crtc.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "drm_crtc_helper.h" | 33 | #include <drm/radeon_drm.h> |
34 | #include "radeon_drm.h" | ||
35 | #include "radeon.h" | 34 | #include "radeon.h" |
36 | 35 | ||
37 | #include "drm_fb_helper.h" | 36 | #include <drm/drm_fb_helper.h> |
38 | 37 | ||
39 | #include <linux/vga_switcheroo.h> | 38 | #include <linux/vga_switcheroo.h> |
40 | 39 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c index 1eb3db52a36e..22bd6c2c2740 100644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c | |||
@@ -34,8 +34,7 @@ | |||
34 | #include <linux/list.h> | 34 | #include <linux/list.h> |
35 | #include <linux/kref.h> | 35 | #include <linux/kref.h> |
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | #include "drm.h" | ||
39 | #include "radeon_reg.h" | 38 | #include "radeon_reg.h" |
40 | #include "radeon.h" | 39 | #include "radeon.h" |
41 | #include "radeon_trace.h" | 40 | #include "radeon_trace.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c index 753b7ca3c807..f0c06d196b75 100644 --- a/drivers/gpu/drm/radeon/radeon_gart.c +++ b/drivers/gpu/drm/radeon/radeon_gart.c | |||
@@ -25,8 +25,8 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon_drm.h" | 29 | #include <drm/radeon_drm.h> |
30 | #include "radeon.h" | 30 | #include "radeon.h" |
31 | #include "radeon_reg.h" | 31 | #include "radeon_reg.h" |
32 | 32 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index 6579befa5101..f38fbcc46935 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c | |||
@@ -25,9 +25,8 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm.h" | 29 | #include <drm/radeon_drm.h> |
30 | #include "radeon_drm.h" | ||
31 | #include "radeon.h" | 30 | #include "radeon.h" |
32 | 31 | ||
33 | int radeon_gem_object_init(struct drm_gem_object *obj) | 32 | int radeon_gem_object_init(struct drm_gem_object *obj) |
diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index 3edec1c198e3..c5bddd630eb9 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c | |||
@@ -25,9 +25,9 @@ | |||
25 | */ | 25 | */ |
26 | #include <linux/export.h> | 26 | #include <linux/export.h> |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm_edid.h" | 29 | #include <drm/drm_edid.h> |
30 | #include "radeon_drm.h" | 30 | #include <drm/radeon_drm.h> |
31 | #include "radeon.h" | 31 | #include "radeon.h" |
32 | #include "atom.h" | 32 | #include "atom.h" |
33 | 33 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_ioc32.c b/drivers/gpu/drm/radeon/radeon_ioc32.c index c4bb2269be10..c180df8e84db 100644 --- a/drivers/gpu/drm/radeon/radeon_ioc32.c +++ b/drivers/gpu/drm/radeon/radeon_ioc32.c | |||
@@ -29,9 +29,8 @@ | |||
29 | */ | 29 | */ |
30 | #include <linux/compat.h> | 30 | #include <linux/compat.h> |
31 | 31 | ||
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/radeon_drm.h> |
34 | #include "radeon_drm.h" | ||
35 | #include "radeon_drv.h" | 34 | #include "radeon_drv.h" |
36 | 35 | ||
37 | typedef struct drm_radeon_init32 { | 36 | typedef struct drm_radeon_init32 { |
diff --git a/drivers/gpu/drm/radeon/radeon_irq.c b/drivers/gpu/drm/radeon/radeon_irq.c index 00da38424dfc..e7710339a6a7 100644 --- a/drivers/gpu/drm/radeon/radeon_irq.c +++ b/drivers/gpu/drm/radeon/radeon_irq.c | |||
@@ -30,9 +30,8 @@ | |||
30 | * Michel D�zer <michel@daenzer.net> | 30 | * Michel D�zer <michel@daenzer.net> |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "drmP.h" | 33 | #include <drm/drmP.h> |
34 | #include "drm.h" | 34 | #include <drm/radeon_drm.h> |
35 | #include "radeon_drm.h" | ||
36 | #include "radeon_drv.h" | 35 | #include "radeon_drv.h" |
37 | 36 | ||
38 | void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state) | 37 | void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state) |
diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c index b06fa5936100..90374dd77960 100644 --- a/drivers/gpu/drm/radeon/radeon_irq_kms.c +++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c | |||
@@ -25,9 +25,9 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm_crtc_helper.h" | 29 | #include <drm/drm_crtc_helper.h> |
30 | #include "radeon_drm.h" | 30 | #include <drm/radeon_drm.h> |
31 | #include "radeon_reg.h" | 31 | #include "radeon_reg.h" |
32 | #include "radeon.h" | 32 | #include "radeon.h" |
33 | #include "atom.h" | 33 | #include "atom.h" |
@@ -285,7 +285,7 @@ void radeon_irq_kms_fini(struct radeon_device *rdev) | |||
285 | if (rdev->msi_enabled) | 285 | if (rdev->msi_enabled) |
286 | pci_disable_msi(rdev->pdev); | 286 | pci_disable_msi(rdev->pdev); |
287 | } | 287 | } |
288 | flush_work_sync(&rdev->hotplug_work); | 288 | flush_work(&rdev->hotplug_work); |
289 | } | 289 | } |
290 | 290 | ||
291 | /** | 291 | /** |
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index cb8e94d1a2b2..83b8d8aa71c0 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c | |||
@@ -25,10 +25,9 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "drm_sarea.h" | ||
30 | #include "radeon.h" | 29 | #include "radeon.h" |
31 | #include "radeon_drm.h" | 30 | #include <drm/radeon_drm.h> |
32 | #include "radeon_asic.h" | 31 | #include "radeon_asic.h" |
33 | 32 | ||
34 | #include <linux/vga_switcheroo.h> | 33 | #include <linux/vga_switcheroo.h> |
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c index 8ad9c5f16014..92487e614778 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c | |||
@@ -23,9 +23,9 @@ | |||
23 | * Authors: Dave Airlie | 23 | * Authors: Dave Airlie |
24 | * Alex Deucher | 24 | * Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm_crtc_helper.h" | 27 | #include <drm/drm_crtc_helper.h> |
28 | #include "radeon_drm.h" | 28 | #include <drm/radeon_drm.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "atom.h" | 30 | #include "atom.h" |
31 | #include <linux/backlight.h> | 31 | #include <linux/backlight.h> |
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_tv.c b/drivers/gpu/drm/radeon/radeon_legacy_tv.c index b37ec0f1413a..49750d07ab7d 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_tv.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_tv.c | |||
@@ -1,5 +1,5 @@ | |||
1 | #include "drmP.h" | 1 | #include <drm/drmP.h> |
2 | #include "drm_crtc_helper.h" | 2 | #include <drm/drm_crtc_helper.h> |
3 | #include "radeon.h" | 3 | #include "radeon.h" |
4 | 4 | ||
5 | /* | 5 | /* |
diff --git a/drivers/gpu/drm/radeon/radeon_mem.c b/drivers/gpu/drm/radeon/radeon_mem.c index 988548efea92..b9f067241633 100644 --- a/drivers/gpu/drm/radeon/radeon_mem.c +++ b/drivers/gpu/drm/radeon/radeon_mem.c | |||
@@ -29,9 +29,8 @@ | |||
29 | * Keith Whitwell <keith@tungstengraphics.com> | 29 | * Keith Whitwell <keith@tungstengraphics.com> |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/radeon_drm.h> |
34 | #include "radeon_drm.h" | ||
35 | #include "radeon_drv.h" | 34 | #include "radeon_drv.h" |
36 | 35 | ||
37 | /* Very simple allocator for GART memory, working on a static range | 36 | /* Very simple allocator for GART memory, working on a static range |
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 527761801590..92c5f473cf08 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -30,12 +30,11 @@ | |||
30 | #ifndef RADEON_MODE_H | 30 | #ifndef RADEON_MODE_H |
31 | #define RADEON_MODE_H | 31 | #define RADEON_MODE_H |
32 | 32 | ||
33 | #include <drm_crtc.h> | 33 | #include <drm/drm_crtc.h> |
34 | #include <drm_mode.h> | 34 | #include <drm/drm_edid.h> |
35 | #include <drm_edid.h> | 35 | #include <drm/drm_dp_helper.h> |
36 | #include <drm_dp_helper.h> | 36 | #include <drm/drm_fixed.h> |
37 | #include <drm_fixed.h> | 37 | #include <drm/drm_crtc_helper.h> |
38 | #include <drm_crtc_helper.h> | ||
39 | #include <linux/i2c.h> | 38 | #include <linux/i2c.h> |
40 | #include <linux/i2c-algo-bit.h> | 39 | #include <linux/i2c-algo-bit.h> |
41 | 40 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index a236795dc69a..8b27dd6e3144 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <linux/list.h> | 32 | #include <linux/list.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | #include <drm/drmP.h> | 34 | #include <drm/drmP.h> |
35 | #include "radeon_drm.h" | 35 | #include <drm/radeon_drm.h> |
36 | #include "radeon.h" | 36 | #include "radeon.h" |
37 | #include "radeon_trace.h" | 37 | #include "radeon_trace.h" |
38 | 38 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index bc2e7050a9d8..aa14dbb7e4fb 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * Authors: Rafał Miłecki <zajec5@gmail.com> | 20 | * Authors: Rafał Miłecki <zajec5@gmail.com> |
21 | * Alex Deucher <alexdeucher@gmail.com> | 21 | * Alex Deucher <alexdeucher@gmail.com> |
22 | */ | 22 | */ |
23 | #include "drmP.h" | 23 | #include <drm/drmP.h> |
24 | #include "radeon.h" | 24 | #include "radeon.h" |
25 | #include "avivod.h" | 25 | #include "avivod.h" |
26 | #include "atom.h" | 26 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_prime.c b/drivers/gpu/drm/radeon/radeon_prime.c index 6bef46ace831..e09521858f64 100644 --- a/drivers/gpu/drm/radeon/radeon_prime.c +++ b/drivers/gpu/drm/radeon/radeon_prime.c | |||
@@ -23,11 +23,10 @@ | |||
23 | * | 23 | * |
24 | * Authors: Alex Deucher | 24 | * Authors: Alex Deucher |
25 | */ | 25 | */ |
26 | #include "drmP.h" | 26 | #include <drm/drmP.h> |
27 | #include "drm.h" | ||
28 | 27 | ||
29 | #include "radeon.h" | 28 | #include "radeon.h" |
30 | #include "radeon_drm.h" | 29 | #include <drm/radeon_drm.h> |
31 | 30 | ||
32 | #include <linux/dma-buf.h> | 31 | #include <linux/dma-buf.h> |
33 | 32 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index 028508859a3b..bba66902c83b 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c | |||
@@ -28,8 +28,8 @@ | |||
28 | */ | 28 | */ |
29 | #include <linux/seq_file.h> | 29 | #include <linux/seq_file.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "radeon_drm.h" | 32 | #include <drm/radeon_drm.h> |
33 | #include "radeon_reg.h" | 33 | #include "radeon_reg.h" |
34 | #include "radeon.h" | 34 | #include "radeon.h" |
35 | #include "atom.h" | 35 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/radeon_sa.c b/drivers/gpu/drm/radeon/radeon_sa.c index 105fde69d045..cb800995d4f9 100644 --- a/drivers/gpu/drm/radeon/radeon_sa.c +++ b/drivers/gpu/drm/radeon/radeon_sa.c | |||
@@ -41,8 +41,7 @@ | |||
41 | * If we are asked to block we wait on all the oldest fence of all | 41 | * If we are asked to block we wait on all the oldest fence of all |
42 | * rings. We just wait for any of those fence to complete. | 42 | * rings. We just wait for any of those fence to complete. |
43 | */ | 43 | */ |
44 | #include "drmP.h" | 44 | #include <drm/drmP.h> |
45 | #include "drm.h" | ||
46 | #include "radeon.h" | 45 | #include "radeon.h" |
47 | 46 | ||
48 | static void radeon_sa_bo_remove_locked(struct radeon_sa_bo *sa_bo); | 47 | static void radeon_sa_bo_remove_locked(struct radeon_sa_bo *sa_bo); |
diff --git a/drivers/gpu/drm/radeon/radeon_semaphore.c b/drivers/gpu/drm/radeon/radeon_semaphore.c index 7cc78de6ddc3..97f3ece81cd2 100644 --- a/drivers/gpu/drm/radeon/radeon_semaphore.c +++ b/drivers/gpu/drm/radeon/radeon_semaphore.c | |||
@@ -27,8 +27,7 @@ | |||
27 | * Authors: | 27 | * Authors: |
28 | * Christian König <deathsimple@vodafone.de> | 28 | * Christian König <deathsimple@vodafone.de> |
29 | */ | 29 | */ |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | ||
32 | #include "radeon.h" | 31 | #include "radeon.h" |
33 | 32 | ||
34 | 33 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_state.c b/drivers/gpu/drm/radeon/radeon_state.c index e8422ae7fe74..8e9057b6a365 100644 --- a/drivers/gpu/drm/radeon/radeon_state.c +++ b/drivers/gpu/drm/radeon/radeon_state.c | |||
@@ -27,11 +27,9 @@ | |||
27 | * Kevin E. Martin <martin@valinux.com> | 27 | * Kevin E. Martin <martin@valinux.com> |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "drm.h" | 31 | #include <drm/drm_buffer.h> |
32 | #include "drm_buffer.h" | 32 | #include <drm/radeon_drm.h> |
33 | #include "drm_sarea.h" | ||
34 | #include "radeon_drm.h" | ||
35 | #include "radeon_drv.h" | 33 | #include "radeon_drv.h" |
36 | 34 | ||
37 | /* ================================================================ | 35 | /* ================================================================ |
diff --git a/drivers/gpu/drm/radeon/radeon_trace_points.c b/drivers/gpu/drm/radeon/radeon_trace_points.c index 8175993df84d..e51d3575976b 100644 --- a/drivers/gpu/drm/radeon/radeon_trace_points.c +++ b/drivers/gpu/drm/radeon/radeon_trace_points.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Author : Dave Airlie <airlied@redhat.com> | 2 | * Author : Dave Airlie <airlied@redhat.com> |
3 | */ | 3 | */ |
4 | #include <drm/drmP.h> | 4 | #include <drm/drmP.h> |
5 | #include "radeon_drm.h" | 5 | #include <drm/radeon_drm.h> |
6 | #include "radeon.h" | 6 | #include "radeon.h" |
7 | 7 | ||
8 | #define CREATE_TRACE_POINTS | 8 | #define CREATE_TRACE_POINTS |
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index dc8d021a999b..5a0fc74c2ba6 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c | |||
@@ -35,7 +35,7 @@ | |||
35 | * close to the one of the R600 family (R600 likely being an evolution | 35 | * close to the one of the R600 family (R600 likely being an evolution |
36 | * of the RS600 GART block). | 36 | * of the RS600 GART block). |
37 | */ | 37 | */ |
38 | #include "drmP.h" | 38 | #include <drm/drmP.h> |
39 | #include "radeon.h" | 39 | #include "radeon.h" |
40 | #include "radeon_asic.h" | 40 | #include "radeon_asic.h" |
41 | #include "atom.h" | 41 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c index 5cd5aceb69fa..5706d2ac75ab 100644 --- a/drivers/gpu/drm/radeon/rs690.c +++ b/drivers/gpu/drm/radeon/rs690.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * Alex Deucher | 25 | * Alex Deucher |
26 | * Jerome Glisse | 26 | * Jerome Glisse |
27 | */ | 27 | */ |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "radeon_asic.h" | 30 | #include "radeon_asic.h" |
31 | #include "atom.h" | 31 | #include "atom.h" |
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c index 2d75d30be5b4..785d09590b24 100644 --- a/drivers/gpu/drm/radeon/rv515.c +++ b/drivers/gpu/drm/radeon/rv515.c | |||
@@ -27,7 +27,7 @@ | |||
27 | */ | 27 | */ |
28 | #include <linux/seq_file.h> | 28 | #include <linux/seq_file.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "rv515d.h" | 31 | #include "rv515d.h" |
32 | #include "radeon.h" | 32 | #include "radeon.h" |
33 | #include "radeon_asic.h" | 33 | #include "radeon_asic.h" |
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 2469afe11b85..79814a08c8e5 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -28,10 +28,10 @@ | |||
28 | #include <linux/firmware.h> | 28 | #include <linux/firmware.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "radeon.h" | 32 | #include "radeon.h" |
33 | #include "radeon_asic.h" | 33 | #include "radeon_asic.h" |
34 | #include "radeon_drm.h" | 34 | #include <drm/radeon_drm.h> |
35 | #include "rv770d.h" | 35 | #include "rv770d.h" |
36 | #include "atom.h" | 36 | #include "atom.h" |
37 | #include "avivod.h" | 37 | #include "avivod.h" |
diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index c76825ffa37f..f79633a036c3 100644 --- a/drivers/gpu/drm/radeon/si.c +++ b/drivers/gpu/drm/radeon/si.c | |||
@@ -25,10 +25,10 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "radeon.h" | 29 | #include "radeon.h" |
30 | #include "radeon_asic.h" | 30 | #include "radeon_asic.h" |
31 | #include "radeon_drm.h" | 31 | #include <drm/radeon_drm.h> |
32 | #include "sid.h" | 32 | #include "sid.h" |
33 | #include "atom.h" | 33 | #include "atom.h" |
34 | #include "si_blit_shaders.h" | 34 | #include "si_blit_shaders.h" |
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c index c89aef420971..b55c1d661147 100644 --- a/drivers/gpu/drm/savage/savage_bci.c +++ b/drivers/gpu/drm/savage/savage_bci.c | |||
@@ -22,8 +22,8 @@ | |||
22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
24 | */ | 24 | */ |
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "savage_drm.h" | 26 | #include <drm/savage_drm.h> |
27 | #include "savage_drv.h" | 27 | #include "savage_drv.h" |
28 | 28 | ||
29 | /* Need a long timeout for shadow status updates can take a while | 29 | /* Need a long timeout for shadow status updates can take a while |
diff --git a/drivers/gpu/drm/savage/savage_drv.c b/drivers/gpu/drm/savage/savage_drv.c index c5a164337bd5..71b2081e7835 100644 --- a/drivers/gpu/drm/savage/savage_drv.c +++ b/drivers/gpu/drm/savage/savage_drv.c | |||
@@ -25,11 +25,11 @@ | |||
25 | 25 | ||
26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "savage_drm.h" | 29 | #include <drm/savage_drm.h> |
30 | #include "savage_drv.h" | 30 | #include "savage_drv.h" |
31 | 31 | ||
32 | #include "drm_pciids.h" | 32 | #include <drm/drm_pciids.h> |
33 | 33 | ||
34 | static struct pci_device_id pciidlist[] = { | 34 | static struct pci_device_id pciidlist[] = { |
35 | savage_PCI_IDS | 35 | savage_PCI_IDS |
diff --git a/drivers/gpu/drm/savage/savage_state.c b/drivers/gpu/drm/savage/savage_state.c index b6d8608375cd..b35e75ed890c 100644 --- a/drivers/gpu/drm/savage/savage_state.c +++ b/drivers/gpu/drm/savage/savage_state.c | |||
@@ -22,8 +22,8 @@ | |||
22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
24 | */ | 24 | */ |
25 | #include "drmP.h" | 25 | #include <drm/drmP.h> |
26 | #include "savage_drm.h" | 26 | #include <drm/savage_drm.h> |
27 | #include "savage_drv.h" | 27 | #include "savage_drv.h" |
28 | 28 | ||
29 | void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv, | 29 | void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv, |
diff --git a/drivers/gpu/drm/sis/sis_drv.c b/drivers/gpu/drm/sis/sis_drv.c index 867dc03000e6..841065b998a1 100644 --- a/drivers/gpu/drm/sis/sis_drv.c +++ b/drivers/gpu/drm/sis/sis_drv.c | |||
@@ -27,11 +27,11 @@ | |||
27 | 27 | ||
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | 29 | ||
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "sis_drm.h" | 31 | #include <drm/sis_drm.h> |
32 | #include "sis_drv.h" | 32 | #include "sis_drv.h" |
33 | 33 | ||
34 | #include "drm_pciids.h" | 34 | #include <drm/drm_pciids.h> |
35 | 35 | ||
36 | static struct pci_device_id pciidlist[] = { | 36 | static struct pci_device_id pciidlist[] = { |
37 | sisdrv_PCI_IDS | 37 | sisdrv_PCI_IDS |
diff --git a/drivers/gpu/drm/sis/sis_drv.h b/drivers/gpu/drm/sis/sis_drv.h index 573758b2d2d6..13b527bb83be 100644 --- a/drivers/gpu/drm/sis/sis_drv.h +++ b/drivers/gpu/drm/sis/sis_drv.h | |||
@@ -44,7 +44,7 @@ enum sis_family { | |||
44 | SIS_CHIP_315 = 1, | 44 | SIS_CHIP_315 = 1, |
45 | }; | 45 | }; |
46 | 46 | ||
47 | #include "drm_mm.h" | 47 | #include <drm/drm_mm.h> |
48 | 48 | ||
49 | 49 | ||
50 | #define SIS_BASE (dev_priv->mmio) | 50 | #define SIS_BASE (dev_priv->mmio) |
diff --git a/drivers/gpu/drm/sis/sis_mm.c b/drivers/gpu/drm/sis/sis_mm.c index 2c231070d250..2b2f78c428af 100644 --- a/drivers/gpu/drm/sis/sis_mm.c +++ b/drivers/gpu/drm/sis/sis_mm.c | |||
@@ -31,8 +31,8 @@ | |||
31 | * Thomas Hellström <thomas-at-tungstengraphics-dot-com> | 31 | * Thomas Hellström <thomas-at-tungstengraphics-dot-com> |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "drmP.h" | 34 | #include <drm/drmP.h> |
35 | #include "sis_drm.h" | 35 | #include <drm/sis_drm.h> |
36 | #include "sis_drv.h" | 36 | #include "sis_drv.h" |
37 | 37 | ||
38 | #include <video/sisfb.h> | 38 | #include <video/sisfb.h> |
diff --git a/drivers/gpu/drm/tdfx/tdfx_drv.c b/drivers/gpu/drm/tdfx/tdfx_drv.c index a7f4d6bd1330..ddfa743459d0 100644 --- a/drivers/gpu/drm/tdfx/tdfx_drv.c +++ b/drivers/gpu/drm/tdfx/tdfx_drv.c | |||
@@ -32,10 +32,10 @@ | |||
32 | 32 | ||
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | 34 | ||
35 | #include "drmP.h" | 35 | #include <drm/drmP.h> |
36 | #include "tdfx_drv.h" | 36 | #include "tdfx_drv.h" |
37 | 37 | ||
38 | #include "drm_pciids.h" | 38 | #include <drm/drm_pciids.h> |
39 | 39 | ||
40 | static struct pci_device_id pciidlist[] = { | 40 | static struct pci_device_id pciidlist[] = { |
41 | tdfx_PCI_IDS | 41 | tdfx_PCI_IDS |
diff --git a/drivers/gpu/drm/ttm/ttm_agp_backend.c b/drivers/gpu/drm/ttm/ttm_agp_backend.c index 4a8728291361..3302f99e7497 100644 --- a/drivers/gpu/drm/ttm/ttm_agp_backend.c +++ b/drivers/gpu/drm/ttm/ttm_agp_backend.c | |||
@@ -31,11 +31,11 @@ | |||
31 | 31 | ||
32 | #define pr_fmt(fmt) "[TTM] " fmt | 32 | #define pr_fmt(fmt) "[TTM] " fmt |
33 | 33 | ||
34 | #include "ttm/ttm_module.h" | 34 | #include <drm/ttm/ttm_module.h> |
35 | #include "ttm/ttm_bo_driver.h" | 35 | #include <drm/ttm/ttm_bo_driver.h> |
36 | #include "ttm/ttm_page_alloc.h" | 36 | #include <drm/ttm/ttm_page_alloc.h> |
37 | #ifdef TTM_HAS_AGP | 37 | #ifdef TTM_HAS_AGP |
38 | #include "ttm/ttm_placement.h" | 38 | #include <drm/ttm/ttm_placement.h> |
39 | #include <linux/agp_backend.h> | 39 | #include <linux/agp_backend.h> |
40 | #include <linux/module.h> | 40 | #include <linux/module.h> |
41 | #include <linux/slab.h> | 41 | #include <linux/slab.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 36f4b28c1b90..402ab69f9f99 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c | |||
@@ -30,9 +30,9 @@ | |||
30 | 30 | ||
31 | #define pr_fmt(fmt) "[TTM] " fmt | 31 | #define pr_fmt(fmt) "[TTM] " fmt |
32 | 32 | ||
33 | #include "ttm/ttm_module.h" | 33 | #include <drm/ttm/ttm_module.h> |
34 | #include "ttm/ttm_bo_driver.h" | 34 | #include <drm/ttm/ttm_bo_driver.h> |
35 | #include "ttm/ttm_placement.h" | 35 | #include <drm/ttm/ttm_placement.h> |
36 | #include <linux/jiffies.h> | 36 | #include <linux/jiffies.h> |
37 | #include <linux/slab.h> | 37 | #include <linux/slab.h> |
38 | #include <linux/sched.h> | 38 | #include <linux/sched.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_bo_manager.c b/drivers/gpu/drm/ttm/ttm_bo_manager.c index 038e947d00f9..9212494e9072 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_manager.c +++ b/drivers/gpu/drm/ttm/ttm_bo_manager.c | |||
@@ -28,10 +28,10 @@ | |||
28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "ttm/ttm_module.h" | 31 | #include <drm/ttm/ttm_module.h> |
32 | #include "ttm/ttm_bo_driver.h" | 32 | #include <drm/ttm/ttm_bo_driver.h> |
33 | #include "ttm/ttm_placement.h" | 33 | #include <drm/ttm/ttm_placement.h> |
34 | #include "drm_mm.h" | 34 | #include <drm/drm_mm.h> |
35 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
36 | #include <linux/spinlock.h> | 36 | #include <linux/spinlock.h> |
37 | #include <linux/module.h> | 37 | #include <linux/module.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 0df71eacd587..2026060f03e0 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c | |||
@@ -28,8 +28,8 @@ | |||
28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "ttm/ttm_bo_driver.h" | 31 | #include <drm/ttm/ttm_bo_driver.h> |
32 | #include "ttm/ttm_placement.h" | 32 | #include <drm/ttm/ttm_placement.h> |
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <linux/highmem.h> | 34 | #include <linux/highmem.h> |
35 | #include <linux/wait.h> | 35 | #include <linux/wait.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c index 3832fe10b4df..1937069432c5 100644 --- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c +++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c | |||
@@ -25,9 +25,9 @@ | |||
25 | * | 25 | * |
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "ttm/ttm_execbuf_util.h" | 28 | #include <drm/ttm/ttm_execbuf_util.h> |
29 | #include "ttm/ttm_bo_driver.h" | 29 | #include <drm/ttm/ttm_bo_driver.h> |
30 | #include "ttm/ttm_placement.h" | 30 | #include <drm/ttm/ttm_placement.h> |
31 | #include <linux/wait.h> | 31 | #include <linux/wait.h> |
32 | #include <linux/sched.h> | 32 | #include <linux/sched.h> |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_lock.c b/drivers/gpu/drm/ttm/ttm_lock.c index 075daf44bce4..3daa9a3930b8 100644 --- a/drivers/gpu/drm/ttm/ttm_lock.c +++ b/drivers/gpu/drm/ttm/ttm_lock.c | |||
@@ -28,8 +28,8 @@ | |||
28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> | 28 | * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "ttm/ttm_lock.h" | 31 | #include <drm/ttm/ttm_lock.h> |
32 | #include "ttm/ttm_module.h" | 32 | #include <drm/ttm/ttm_module.h> |
33 | #include <linux/atomic.h> | 33 | #include <linux/atomic.h> |
34 | #include <linux/errno.h> | 34 | #include <linux/errno.h> |
35 | #include <linux/wait.h> | 35 | #include <linux/wait.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c index 23d2ecbaed59..479c6b0467ca 100644 --- a/drivers/gpu/drm/ttm/ttm_memory.c +++ b/drivers/gpu/drm/ttm/ttm_memory.c | |||
@@ -27,9 +27,9 @@ | |||
27 | 27 | ||
28 | #define pr_fmt(fmt) "[TTM] " fmt | 28 | #define pr_fmt(fmt) "[TTM] " fmt |
29 | 29 | ||
30 | #include "ttm/ttm_memory.h" | 30 | #include <drm/ttm/ttm_memory.h> |
31 | #include "ttm/ttm_module.h" | 31 | #include <drm/ttm/ttm_module.h> |
32 | #include "ttm/ttm_page_alloc.h" | 32 | #include <drm/ttm/ttm_page_alloc.h> |
33 | #include <linux/spinlock.h> | 33 | #include <linux/spinlock.h> |
34 | #include <linux/sched.h> | 34 | #include <linux/sched.h> |
35 | #include <linux/wait.h> | 35 | #include <linux/wait.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_module.c b/drivers/gpu/drm/ttm/ttm_module.c index 902d7cf9fb4e..d7f92fe9d904 100644 --- a/drivers/gpu/drm/ttm/ttm_module.c +++ b/drivers/gpu/drm/ttm/ttm_module.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include <linux/module.h> | 31 | #include <linux/module.h> |
32 | #include <linux/device.h> | 32 | #include <linux/device.h> |
33 | #include <linux/sched.h> | 33 | #include <linux/sched.h> |
34 | #include "ttm/ttm_module.h" | 34 | #include <drm/ttm/ttm_module.h> |
35 | #include "drm_sysfs.h" | 35 | #include <drm/drm_sysfs.h> |
36 | 36 | ||
37 | static DECLARE_WAIT_QUEUE_HEAD(exit_q); | 37 | static DECLARE_WAIT_QUEUE_HEAD(exit_q); |
38 | atomic_t device_released; | 38 | atomic_t device_released; |
diff --git a/drivers/gpu/drm/ttm/ttm_object.c b/drivers/gpu/drm/ttm/ttm_object.c index 68daca412cbd..c7857874956a 100644 --- a/drivers/gpu/drm/ttm/ttm_object.c +++ b/drivers/gpu/drm/ttm/ttm_object.c | |||
@@ -51,8 +51,8 @@ | |||
51 | 51 | ||
52 | #define pr_fmt(fmt) "[TTM] " fmt | 52 | #define pr_fmt(fmt) "[TTM] " fmt |
53 | 53 | ||
54 | #include "ttm/ttm_object.h" | 54 | #include <drm/ttm/ttm_object.h> |
55 | #include "ttm/ttm_module.h" | 55 | #include <drm/ttm/ttm_module.h> |
56 | #include <linux/list.h> | 56 | #include <linux/list.h> |
57 | #include <linux/spinlock.h> | 57 | #include <linux/spinlock.h> |
58 | #include <linux/slab.h> | 58 | #include <linux/slab.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index ebc6fac96e36..860dc4813e99 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c | |||
@@ -45,8 +45,8 @@ | |||
45 | 45 | ||
46 | #include <linux/atomic.h> | 46 | #include <linux/atomic.h> |
47 | 47 | ||
48 | #include "ttm/ttm_bo_driver.h" | 48 | #include <drm/ttm/ttm_bo_driver.h> |
49 | #include "ttm/ttm_page_alloc.h" | 49 | #include <drm/ttm/ttm_page_alloc.h> |
50 | 50 | ||
51 | #ifdef TTM_HAS_AGP | 51 | #ifdef TTM_HAS_AGP |
52 | #include <asm/agp.h> | 52 | #include <asm/agp.h> |
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c index 969d76532088..b8b394319b45 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | |||
@@ -47,8 +47,8 @@ | |||
47 | #include <linux/atomic.h> | 47 | #include <linux/atomic.h> |
48 | #include <linux/device.h> | 48 | #include <linux/device.h> |
49 | #include <linux/kthread.h> | 49 | #include <linux/kthread.h> |
50 | #include "ttm/ttm_bo_driver.h" | 50 | #include <drm/ttm/ttm_bo_driver.h> |
51 | #include "ttm/ttm_page_alloc.h" | 51 | #include <drm/ttm/ttm_page_alloc.h> |
52 | #ifdef TTM_HAS_AGP | 52 | #ifdef TTM_HAS_AGP |
53 | #include <asm/agp.h> | 53 | #include <asm/agp.h> |
54 | #endif | 54 | #endif |
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 11c9369d4208..bf8260133ea9 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c | |||
@@ -38,12 +38,12 @@ | |||
38 | #include <linux/swap.h> | 38 | #include <linux/swap.h> |
39 | #include <linux/slab.h> | 39 | #include <linux/slab.h> |
40 | #include <linux/export.h> | 40 | #include <linux/export.h> |
41 | #include "drm_cache.h" | 41 | #include <drm/drm_cache.h> |
42 | #include "drm_mem_util.h" | 42 | #include <drm/drm_mem_util.h> |
43 | #include "ttm/ttm_module.h" | 43 | #include <drm/ttm/ttm_module.h> |
44 | #include "ttm/ttm_bo_driver.h" | 44 | #include <drm/ttm/ttm_bo_driver.h> |
45 | #include "ttm/ttm_placement.h" | 45 | #include <drm/ttm/ttm_placement.h> |
46 | #include "ttm/ttm_page_alloc.h" | 46 | #include <drm/ttm/ttm_page_alloc.h> |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Allocates storage for pointers to the pages that back the ttm. | 49 | * Allocates storage for pointers to the pages that back the ttm. |
diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c index d568aa4b10d1..b3b2cedf6745 100644 --- a/drivers/gpu/drm/udl/udl_connector.c +++ b/drivers/gpu/drm/udl/udl_connector.c | |||
@@ -10,10 +10,10 @@ | |||
10 | * more details. | 10 | * more details. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | #include "drm_crtc.h" | 14 | #include <drm/drm_crtc.h> |
15 | #include "drm_edid.h" | 15 | #include <drm/drm_edid.h> |
16 | #include "drm_crtc_helper.h" | 16 | #include <drm/drm_crtc_helper.h> |
17 | #include "udl_drv.h" | 17 | #include "udl_drv.h" |
18 | 18 | ||
19 | /* dummy connector to just get EDID, | 19 | /* dummy connector to just get EDID, |
diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c index 9f84128505bb..c0770dbba74a 100644 --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c | |||
@@ -7,8 +7,8 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include "drm_usb.h" | 10 | #include <drm/drm_usb.h> |
11 | #include "drm_crtc_helper.h" | 11 | #include <drm/drm_crtc_helper.h> |
12 | #include "udl_drv.h" | 12 | #include "udl_drv.h" |
13 | 13 | ||
14 | static struct drm_driver driver; | 14 | static struct drm_driver driver; |
diff --git a/drivers/gpu/drm/udl/udl_encoder.c b/drivers/gpu/drm/udl/udl_encoder.c index 0476bfe06d14..4052c4656498 100644 --- a/drivers/gpu/drm/udl/udl_encoder.c +++ b/drivers/gpu/drm/udl/udl_encoder.c | |||
@@ -10,9 +10,9 @@ | |||
10 | * more details. | 10 | * more details. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | #include "drm_crtc.h" | 14 | #include <drm/drm_crtc.h> |
15 | #include "drm_crtc_helper.h" | 15 | #include <drm/drm_crtc_helper.h> |
16 | #include "udl_drv.h" | 16 | #include "udl_drv.h" |
17 | 17 | ||
18 | /* dummy encoder */ | 18 | /* dummy encoder */ |
diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c index 0e47e9614b78..67df842fbb33 100644 --- a/drivers/gpu/drm/udl/udl_fb.c +++ b/drivers/gpu/drm/udl/udl_fb.c | |||
@@ -15,13 +15,12 @@ | |||
15 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
16 | #include <linux/dma-buf.h> | 16 | #include <linux/dma-buf.h> |
17 | 17 | ||
18 | #include "drmP.h" | 18 | #include <drm/drmP.h> |
19 | #include "drm.h" | 19 | #include <drm/drm_crtc.h> |
20 | #include "drm_crtc.h" | 20 | #include <drm/drm_crtc_helper.h> |
21 | #include "drm_crtc_helper.h" | ||
22 | #include "udl_drv.h" | 21 | #include "udl_drv.h" |
23 | 22 | ||
24 | #include "drm_fb_helper.h" | 23 | #include <drm/drm_fb_helper.h> |
25 | 24 | ||
26 | #define DL_DEFIO_WRITE_DELAY 5 /* fb_deferred_io.delay in jiffies */ | 25 | #define DL_DEFIO_WRITE_DELAY 5 /* fb_deferred_io.delay in jiffies */ |
27 | 26 | ||
diff --git a/drivers/gpu/drm/udl/udl_gem.c b/drivers/gpu/drm/udl/udl_gem.c index 47b256375831..afd212c99216 100644 --- a/drivers/gpu/drm/udl/udl_gem.c +++ b/drivers/gpu/drm/udl/udl_gem.c | |||
@@ -6,7 +6,7 @@ | |||
6 | * more details. | 6 | * more details. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "drmP.h" | 9 | #include <drm/drmP.h> |
10 | #include "udl_drv.h" | 10 | #include "udl_drv.h" |
11 | #include <linux/shmem_fs.h> | 11 | #include <linux/shmem_fs.h> |
12 | #include <linux/dma-buf.h> | 12 | #include <linux/dma-buf.h> |
diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c index 40bf468c46c2..0ce2d7195256 100644 --- a/drivers/gpu/drm/udl/udl_main.c +++ b/drivers/gpu/drm/udl/udl_main.c | |||
@@ -10,7 +10,7 @@ | |||
10 | * License v2. See the file COPYING in the main directory of this archive for | 10 | * License v2. See the file COPYING in the main directory of this archive for |
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | #include "drmP.h" | 13 | #include <drm/drmP.h> |
14 | #include "udl_drv.h" | 14 | #include "udl_drv.h" |
15 | 15 | ||
16 | /* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */ | 16 | /* -BULK_SIZE as per usb-skeleton. Can we get full page and avoid overhead? */ |
diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl/udl_modeset.c index 8f258158c1fe..e96d2349bd54 100644 --- a/drivers/gpu/drm/udl/udl_modeset.c +++ b/drivers/gpu/drm/udl/udl_modeset.c | |||
@@ -11,9 +11,9 @@ | |||
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "drmP.h" | 14 | #include <drm/drmP.h> |
15 | #include "drm_crtc.h" | 15 | #include <drm/drm_crtc.h> |
16 | #include "drm_crtc_helper.h" | 16 | #include <drm/drm_crtc_helper.h> |
17 | #include "udl_drv.h" | 17 | #include "udl_drv.h" |
18 | 18 | ||
19 | /* | 19 | /* |
diff --git a/drivers/gpu/drm/udl/udl_transfer.c b/drivers/gpu/drm/udl/udl_transfer.c index f9fff657a90b..dc095526ffb7 100644 --- a/drivers/gpu/drm/udl/udl_transfer.c +++ b/drivers/gpu/drm/udl/udl_transfer.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
16 | #include <linux/prefetch.h> | 16 | #include <linux/prefetch.h> |
17 | 17 | ||
18 | #include "drmP.h" | 18 | #include <drm/drmP.h> |
19 | #include "udl_drv.h" | 19 | #include "udl_drv.h" |
20 | 20 | ||
21 | #define MAX_CMD_PIXELS 255 | 21 | #define MAX_CMD_PIXELS 255 |
diff --git a/drivers/gpu/drm/via/via_dma.c b/drivers/gpu/drm/via/via_dma.c index cc0ffa9abd00..13558f5a2422 100644 --- a/drivers/gpu/drm/via/via_dma.c +++ b/drivers/gpu/drm/via/via_dma.c | |||
@@ -34,9 +34,8 @@ | |||
34 | * Thomas Hellstrom. | 34 | * Thomas Hellstrom. |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | #include "drm.h" | 38 | #include <drm/via_drm.h> |
39 | #include "via_drm.h" | ||
40 | #include "via_drv.h" | 39 | #include "via_drv.h" |
41 | #include "via_3d_reg.h" | 40 | #include "via_3d_reg.h" |
42 | 41 | ||
diff --git a/drivers/gpu/drm/via/via_dmablit.c b/drivers/gpu/drm/via/via_dmablit.c index 3e038a394c51..8b0f25904e6d 100644 --- a/drivers/gpu/drm/via/via_dmablit.c +++ b/drivers/gpu/drm/via/via_dmablit.c | |||
@@ -34,8 +34,8 @@ | |||
34 | * the same DMA mappings? | 34 | * the same DMA mappings? |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "drmP.h" | 37 | #include <drm/drmP.h> |
38 | #include "via_drm.h" | 38 | #include <drm/via_drm.h> |
39 | #include "via_drv.h" | 39 | #include "via_drv.h" |
40 | #include "via_dmablit.h" | 40 | #include "via_dmablit.h" |
41 | 41 | ||
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c index af1b914b17e3..f4ae20327941 100644 --- a/drivers/gpu/drm/via/via_drv.c +++ b/drivers/gpu/drm/via/via_drv.c | |||
@@ -24,11 +24,11 @@ | |||
24 | 24 | ||
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | 26 | ||
27 | #include "drmP.h" | 27 | #include <drm/drmP.h> |
28 | #include "via_drm.h" | 28 | #include <drm/via_drm.h> |
29 | #include "via_drv.h" | 29 | #include "via_drv.h" |
30 | 30 | ||
31 | #include "drm_pciids.h" | 31 | #include <drm/drm_pciids.h> |
32 | 32 | ||
33 | static int via_driver_open(struct drm_device *dev, struct drm_file *file) | 33 | static int via_driver_open(struct drm_device *dev, struct drm_file *file) |
34 | { | 34 | { |
diff --git a/drivers/gpu/drm/via/via_drv.h b/drivers/gpu/drm/via/via_drv.h index 88edacc93006..893a65090c36 100644 --- a/drivers/gpu/drm/via/via_drv.h +++ b/drivers/gpu/drm/via/via_drv.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #ifndef _VIA_DRV_H_ | 24 | #ifndef _VIA_DRV_H_ |
25 | #define _VIA_DRV_H_ | 25 | #define _VIA_DRV_H_ |
26 | 26 | ||
27 | #include "drm_mm.h" | 27 | #include <drm/drm_mm.h> |
28 | #define DRIVER_AUTHOR "Various" | 28 | #define DRIVER_AUTHOR "Various" |
29 | 29 | ||
30 | #define DRIVER_NAME "via" | 30 | #define DRIVER_NAME "via" |
diff --git a/drivers/gpu/drm/via/via_irq.c b/drivers/gpu/drm/via/via_irq.c index d391f48ef87a..ac98964297cf 100644 --- a/drivers/gpu/drm/via/via_irq.c +++ b/drivers/gpu/drm/via/via_irq.c | |||
@@ -35,9 +35,8 @@ | |||
35 | * The refresh rate is also calculated for video playback sync purposes. | 35 | * The refresh rate is also calculated for video playback sync purposes. |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "drmP.h" | 38 | #include <drm/drmP.h> |
39 | #include "drm.h" | 39 | #include <drm/via_drm.h> |
40 | #include "via_drm.h" | ||
41 | #include "via_drv.h" | 40 | #include "via_drv.h" |
42 | 41 | ||
43 | #define VIA_REG_INTERRUPT 0x200 | 42 | #define VIA_REG_INTERRUPT 0x200 |
diff --git a/drivers/gpu/drm/via/via_map.c b/drivers/gpu/drm/via/via_map.c index c126182ac07e..c0f1cc7f5ca9 100644 --- a/drivers/gpu/drm/via/via_map.c +++ b/drivers/gpu/drm/via/via_map.c | |||
@@ -21,8 +21,8 @@ | |||
21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | #include "drmP.h" | 24 | #include <drm/drmP.h> |
25 | #include "via_drm.h" | 25 | #include <drm/via_drm.h> |
26 | #include "via_drv.h" | 26 | #include "via_drv.h" |
27 | 27 | ||
28 | static int via_do_init_map(struct drm_device *dev, drm_via_init_t *init) | 28 | static int via_do_init_map(struct drm_device *dev, drm_via_init_t *init) |
diff --git a/drivers/gpu/drm/via/via_mm.c b/drivers/gpu/drm/via/via_mm.c index acfcb358e7b7..0d55432e02a2 100644 --- a/drivers/gpu/drm/via/via_mm.c +++ b/drivers/gpu/drm/via/via_mm.c | |||
@@ -25,8 +25,8 @@ | |||
25 | * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com> | 25 | * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com> |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "via_drm.h" | 29 | #include <drm/via_drm.h> |
30 | #include "via_drv.h" | 30 | #include "via_drv.h" |
31 | 31 | ||
32 | #define VIA_MM_ALIGN_SHIFT 4 | 32 | #define VIA_MM_ALIGN_SHIFT 4 |
diff --git a/drivers/gpu/drm/via/via_verifier.c b/drivers/gpu/drm/via/via_verifier.c index 48957b856d41..9dbc92bd1512 100644 --- a/drivers/gpu/drm/via/via_verifier.c +++ b/drivers/gpu/drm/via/via_verifier.c | |||
@@ -29,9 +29,8 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "via_3d_reg.h" | 31 | #include "via_3d_reg.h" |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "drm.h" | 33 | #include <drm/via_drm.h> |
34 | #include "via_drm.h" | ||
35 | #include "via_verifier.h" | 34 | #include "via_verifier.h" |
36 | #include "via_drv.h" | 35 | #include "via_drv.h" |
37 | 36 | ||
diff --git a/drivers/gpu/drm/via/via_video.c b/drivers/gpu/drm/via/via_video.c index 675d311f038f..6569efa2ff6e 100644 --- a/drivers/gpu/drm/via/via_video.c +++ b/drivers/gpu/drm/via/via_video.c | |||
@@ -25,8 +25,8 @@ | |||
25 | * Video and XvMC related functions. | 25 | * Video and XvMC related functions. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "via_drm.h" | 29 | #include <drm/via_drm.h> |
30 | #include "via_drv.h" | 30 | #include "via_drv.h" |
31 | 31 | ||
32 | void via_init_futex(drm_via_private_t *dev_priv) | 32 | void via_init_futex(drm_via_private_t *dev_priv) |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c index 1e2c0fb7f786..9826fbc88154 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | |||
@@ -26,9 +26,9 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "vmwgfx_drv.h" | 28 | #include "vmwgfx_drv.h" |
29 | #include "ttm/ttm_bo_driver.h" | 29 | #include <drm/ttm/ttm_bo_driver.h> |
30 | #include "ttm/ttm_placement.h" | 30 | #include <drm/ttm/ttm_placement.h> |
31 | #include "ttm/ttm_page_alloc.h" | 31 | #include <drm/ttm/ttm_page_alloc.h> |
32 | 32 | ||
33 | static uint32_t vram_placement_flags = TTM_PL_FLAG_VRAM | | 33 | static uint32_t vram_placement_flags = TTM_PL_FLAG_VRAM | |
34 | TTM_PL_FLAG_CACHED; | 34 | TTM_PL_FLAG_CACHED; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c index 3fa884db08ab..3ce68a2e312d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c | |||
@@ -25,9 +25,9 @@ | |||
25 | * | 25 | * |
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "ttm/ttm_placement.h" | 28 | #include <drm/ttm/ttm_placement.h> |
29 | 29 | ||
30 | #include "drmP.h" | 30 | #include <drm/drmP.h> |
31 | #include "vmwgfx_drv.h" | 31 | #include "vmwgfx_drv.h" |
32 | 32 | ||
33 | 33 | ||
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 09f44c5dd49d..ed3c1e7ddde9 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
@@ -26,12 +26,12 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "vmwgfx_drv.h" | 30 | #include "vmwgfx_drv.h" |
31 | #include "ttm/ttm_placement.h" | 31 | #include <drm/ttm/ttm_placement.h> |
32 | #include "ttm/ttm_bo_driver.h" | 32 | #include <drm/ttm/ttm_bo_driver.h> |
33 | #include "ttm/ttm_object.h" | 33 | #include <drm/ttm/ttm_object.h> |
34 | #include "ttm/ttm_module.h" | 34 | #include <drm/ttm/ttm_module.h> |
35 | 35 | ||
36 | #define VMWGFX_DRIVER_NAME "vmwgfx" | 36 | #define VMWGFX_DRIVER_NAME "vmwgfx" |
37 | #define VMWGFX_DRIVER_DESC "Linux drm driver for VMware graphics devices" | 37 | #define VMWGFX_DRIVER_DESC "Linux drm driver for VMware graphics devices" |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index 29c984ff7f23..88a179e26de9 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |||
@@ -29,15 +29,15 @@ | |||
29 | #define _VMWGFX_DRV_H_ | 29 | #define _VMWGFX_DRV_H_ |
30 | 30 | ||
31 | #include "vmwgfx_reg.h" | 31 | #include "vmwgfx_reg.h" |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | #include "vmwgfx_drm.h" | 33 | #include <drm/vmwgfx_drm.h> |
34 | #include "drm_hashtab.h" | 34 | #include <drm/drm_hashtab.h> |
35 | #include "linux/suspend.h" | 35 | #include <linux/suspend.h> |
36 | #include "ttm/ttm_bo_driver.h" | 36 | #include <drm/ttm/ttm_bo_driver.h> |
37 | #include "ttm/ttm_object.h" | 37 | #include <drm/ttm/ttm_object.h> |
38 | #include "ttm/ttm_lock.h" | 38 | #include <drm/ttm/ttm_lock.h> |
39 | #include "ttm/ttm_execbuf_util.h" | 39 | #include <drm/ttm/ttm_execbuf_util.h> |
40 | #include "ttm/ttm_module.h" | 40 | #include <drm/ttm/ttm_module.h> |
41 | #include "vmwgfx_fence.h" | 41 | #include "vmwgfx_fence.h" |
42 | 42 | ||
43 | #define VMWGFX_DRIVER_DATE "20120209" | 43 | #define VMWGFX_DRIVER_DATE "20120209" |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index 4acced44a623..30654b4cc972 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | |||
@@ -27,8 +27,8 @@ | |||
27 | 27 | ||
28 | #include "vmwgfx_drv.h" | 28 | #include "vmwgfx_drv.h" |
29 | #include "vmwgfx_reg.h" | 29 | #include "vmwgfx_reg.h" |
30 | #include "ttm/ttm_bo_api.h" | 30 | #include <drm/ttm/ttm_bo_api.h> |
31 | #include "ttm/ttm_placement.h" | 31 | #include <drm/ttm/ttm_placement.h> |
32 | 32 | ||
33 | static int vmw_cmd_invalid(struct vmw_private *dev_priv, | 33 | static int vmw_cmd_invalid(struct vmw_private *dev_priv, |
34 | struct vmw_sw_context *sw_context, | 34 | struct vmw_sw_context *sw_context, |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index 3c447bf317cb..ed5ce2a41bbf 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | |||
@@ -28,10 +28,10 @@ | |||
28 | 28 | ||
29 | #include <linux/export.h> | 29 | #include <linux/export.h> |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "vmwgfx_drv.h" | 32 | #include "vmwgfx_drv.h" |
33 | 33 | ||
34 | #include "ttm/ttm_placement.h" | 34 | #include <drm/ttm/ttm_placement.h> |
35 | 35 | ||
36 | #define VMW_DIRTY_DELAY (HZ / 30) | 36 | #define VMW_DIRTY_DELAY (HZ / 30) |
37 | 37 | ||
@@ -594,7 +594,7 @@ int vmw_fb_off(struct vmw_private *vmw_priv) | |||
594 | par->dirty.active = false; | 594 | par->dirty.active = false; |
595 | spin_unlock_irqrestore(&par->dirty.lock, flags); | 595 | spin_unlock_irqrestore(&par->dirty.lock, flags); |
596 | 596 | ||
597 | flush_delayed_work_sync(&info->deferred_work); | 597 | flush_delayed_work(&info->deferred_work); |
598 | 598 | ||
599 | par->bo_ptr = NULL; | 599 | par->bo_ptr = NULL; |
600 | ttm_bo_kunmap(&par->map); | 600 | ttm_bo_kunmap(&par->map); |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index 7e0743358dff..bc187fafd58c 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * | 25 | * |
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "vmwgfx_drv.h" | 29 | #include "vmwgfx_drv.h" |
30 | 30 | ||
31 | #define VMW_FENCE_WRAP (1 << 31) | 31 | #define VMW_FENCE_WRAP (1 << 31) |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c index a0c2f12b1e1b..3eb148667d63 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | |||
@@ -26,8 +26,8 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "vmwgfx_drv.h" | 28 | #include "vmwgfx_drv.h" |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "ttm/ttm_placement.h" | 30 | #include <drm/ttm/ttm_placement.h> |
31 | 31 | ||
32 | bool vmw_fifo_have_3d(struct vmw_private *dev_priv) | 32 | bool vmw_fifo_have_3d(struct vmw_private *dev_priv) |
33 | { | 33 | { |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c b/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c index 21ee78226560..3751730764a5 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c | |||
@@ -26,8 +26,8 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "vmwgfx_drv.h" | 28 | #include "vmwgfx_drv.h" |
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "ttm/ttm_bo_driver.h" | 30 | #include <drm/ttm/ttm_bo_driver.h> |
31 | 31 | ||
32 | #define VMW_PPN_SIZE sizeof(unsigned long) | 32 | #define VMW_PPN_SIZE sizeof(unsigned long) |
33 | 33 | ||
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c b/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c index 5f717152cff5..c5c054ae9056 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c | |||
@@ -29,9 +29,9 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "vmwgfx_drv.h" | 31 | #include "vmwgfx_drv.h" |
32 | #include "ttm/ttm_module.h" | 32 | #include <drm/ttm/ttm_module.h> |
33 | #include "ttm/ttm_bo_driver.h" | 33 | #include <drm/ttm/ttm_bo_driver.h> |
34 | #include "ttm/ttm_placement.h" | 34 | #include <drm/ttm/ttm_placement.h> |
35 | #include <linux/idr.h> | 35 | #include <linux/idr.h> |
36 | #include <linux/spinlock.h> | 36 | #include <linux/spinlock.h> |
37 | #include <linux/kernel.h> | 37 | #include <linux/kernel.h> |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index 66917c6c3813..b07ca2e4d04b 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | |||
@@ -26,7 +26,7 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "vmwgfx_drv.h" | 28 | #include "vmwgfx_drv.h" |
29 | #include "vmwgfx_drm.h" | 29 | #include <drm/vmwgfx_drm.h> |
30 | #include "vmwgfx_kms.h" | 30 | #include "vmwgfx_kms.h" |
31 | 31 | ||
32 | int vmw_getparam_ioctl(struct drm_device *dev, void *data, | 32 | int vmw_getparam_ioctl(struct drm_device *dev, void *data, |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c b/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c index cabc95f7517e..4640adbcaf91 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * | 25 | * |
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "vmwgfx_drv.h" | 29 | #include "vmwgfx_drv.h" |
30 | 30 | ||
31 | #define VMW_FENCE_WRAP (1 << 24) | 31 | #define VMW_FENCE_WRAP (1 << 24) |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index 8184bc5b1730..6fa89c9d6214 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | |||
@@ -28,8 +28,8 @@ | |||
28 | #ifndef VMWGFX_KMS_H_ | 28 | #ifndef VMWGFX_KMS_H_ |
29 | #define VMWGFX_KMS_H_ | 29 | #define VMWGFX_KMS_H_ |
30 | 30 | ||
31 | #include "drmP.h" | 31 | #include <drm/drmP.h> |
32 | #include "drm_crtc_helper.h" | 32 | #include <drm/drm_crtc_helper.h> |
33 | #include "vmwgfx_drv.h" | 33 | #include "vmwgfx_drv.h" |
34 | 34 | ||
35 | #define VMWGFX_NUM_DISPLAY_UNITS 8 | 35 | #define VMWGFX_NUM_DISPLAY_UNITS 8 |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c b/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c index 14399eec9c3c..cb55b7b66377 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c | |||
@@ -26,10 +26,10 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | 28 | ||
29 | #include "drmP.h" | 29 | #include <drm/drmP.h> |
30 | #include "vmwgfx_drv.h" | 30 | #include "vmwgfx_drv.h" |
31 | 31 | ||
32 | #include "ttm/ttm_placement.h" | 32 | #include <drm/ttm/ttm_placement.h> |
33 | 33 | ||
34 | #include "svga_overlay.h" | 34 | #include "svga_overlay.h" |
35 | #include "svga_escape.h" | 35 | #include "svga_escape.h" |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index 2c6ffe0e2c07..da3c6b5b98a1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | |||
@@ -26,10 +26,10 @@ | |||
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "vmwgfx_drv.h" | 28 | #include "vmwgfx_drv.h" |
29 | #include "vmwgfx_drm.h" | 29 | #include <drm/vmwgfx_drm.h> |
30 | #include "ttm/ttm_object.h" | 30 | #include <drm/ttm/ttm_object.h> |
31 | #include "ttm/ttm_placement.h" | 31 | #include <drm/ttm/ttm_placement.h> |
32 | #include "drmP.h" | 32 | #include <drm/drmP.h> |
33 | 33 | ||
34 | struct vmw_user_context { | 34 | struct vmw_user_context { |
35 | struct ttm_base_object base; | 35 | struct ttm_base_object base; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c index d3c11f5184f3..98d6bfb3a997 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * | 25 | * |
26 | **************************************************************************/ | 26 | **************************************************************************/ |
27 | 27 | ||
28 | #include "drmP.h" | 28 | #include <drm/drmP.h> |
29 | #include "vmwgfx_drv.h" | 29 | #include "vmwgfx_drv.h" |
30 | 30 | ||
31 | int vmw_mmap(struct file *filp, struct vm_area_struct *vma) | 31 | int vmw_mmap(struct file *filp, struct vm_area_struct *vma) |
diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c index 3df8fc0ec01a..e893f6e1937d 100644 --- a/drivers/gpu/vga/vgaarb.c +++ b/drivers/gpu/vga/vgaarb.c | |||
@@ -141,7 +141,11 @@ EXPORT_SYMBOL_GPL(vga_default_device); | |||
141 | 141 | ||
142 | void vga_set_default_device(struct pci_dev *pdev) | 142 | void vga_set_default_device(struct pci_dev *pdev) |
143 | { | 143 | { |
144 | vga_default = pdev; | 144 | if (vga_default == pdev) |
145 | return; | ||
146 | |||
147 | pci_dev_put(vga_default); | ||
148 | vga_default = pci_dev_get(pdev); | ||
145 | } | 149 | } |
146 | #endif | 150 | #endif |
147 | 151 | ||
@@ -577,7 +581,7 @@ static bool vga_arbiter_add_pci_device(struct pci_dev *pdev) | |||
577 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE | 581 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE |
578 | if (vga_default == NULL && | 582 | if (vga_default == NULL && |
579 | ((vgadev->owns & VGA_RSRC_LEGACY_MASK) == VGA_RSRC_LEGACY_MASK)) | 583 | ((vgadev->owns & VGA_RSRC_LEGACY_MASK) == VGA_RSRC_LEGACY_MASK)) |
580 | vga_default = pci_dev_get(pdev); | 584 | vga_set_default_device(pdev); |
581 | #endif | 585 | #endif |
582 | 586 | ||
583 | vga_arbiter_check_bridge_sharing(vgadev); | 587 | vga_arbiter_check_bridge_sharing(vgadev); |
@@ -613,10 +617,8 @@ static bool vga_arbiter_del_pci_device(struct pci_dev *pdev) | |||
613 | } | 617 | } |
614 | 618 | ||
615 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE | 619 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE |
616 | if (vga_default == pdev) { | 620 | if (vga_default == pdev) |
617 | pci_dev_put(vga_default); | 621 | vga_set_default_device(NULL); |
618 | vga_default = NULL; | ||
619 | } | ||
620 | #endif | 622 | #endif |
621 | 623 | ||
622 | if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) | 624 | if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) |
@@ -1066,7 +1068,6 @@ static ssize_t vga_arb_write(struct file *file, const char __user * buf, | |||
1066 | } | 1068 | } |
1067 | 1069 | ||
1068 | } else if (strncmp(curr_pos, "target ", 7) == 0) { | 1070 | } else if (strncmp(curr_pos, "target ", 7) == 0) { |
1069 | struct pci_bus *pbus; | ||
1070 | unsigned int domain, bus, devfn; | 1071 | unsigned int domain, bus, devfn; |
1071 | struct vga_device *vgadev; | 1072 | struct vga_device *vgadev; |
1072 | 1073 | ||
@@ -1085,19 +1086,11 @@ static ssize_t vga_arb_write(struct file *file, const char __user * buf, | |||
1085 | pr_debug("vgaarb: %s ==> %x:%x:%x.%x\n", curr_pos, | 1086 | pr_debug("vgaarb: %s ==> %x:%x:%x.%x\n", curr_pos, |
1086 | domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); | 1087 | domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); |
1087 | 1088 | ||
1088 | pbus = pci_find_bus(domain, bus); | 1089 | pdev = pci_get_domain_bus_and_slot(domain, bus, devfn); |
1089 | pr_debug("vgaarb: pbus %p\n", pbus); | ||
1090 | if (pbus == NULL) { | ||
1091 | pr_err("vgaarb: invalid PCI domain and/or bus address %x:%x\n", | ||
1092 | domain, bus); | ||
1093 | ret_val = -ENODEV; | ||
1094 | goto done; | ||
1095 | } | ||
1096 | pdev = pci_get_slot(pbus, devfn); | ||
1097 | pr_debug("vgaarb: pdev %p\n", pdev); | 1090 | pr_debug("vgaarb: pdev %p\n", pdev); |
1098 | if (!pdev) { | 1091 | if (!pdev) { |
1099 | pr_err("vgaarb: invalid PCI address %x:%x\n", | 1092 | pr_err("vgaarb: invalid PCI address %x:%x:%x\n", |
1100 | bus, devfn); | 1093 | domain, bus, devfn); |
1101 | ret_val = -ENODEV; | 1094 | ret_val = -ENODEV; |
1102 | goto done; | 1095 | goto done; |
1103 | } | 1096 | } |