diff options
author | Archit Taneja <architt@codeaurora.org> | 2015-10-27 04:10:59 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-24 05:41:50 -0500 |
commit | b110ef377510b98f5aa0e4c6400cb3f218bb9646 (patch) | |
tree | f668107e063f796bbc225af9cc7b302a9d6762b9 | |
parent | c1ff5a7aa3c385aea6badd1351cf92b02a65f145 (diff) |
drm/tegra: Remove local fbdev emulation Kconfig option
DRM_TEGRA_FBDEV config is currently used to enable/disable legacy fbdev
emulation for the tegra kms driver.
Remove this local config option and use the top level DRM_FBDEV_EMULATION
config option instead.
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1445933459-5249-4-git-send-email-architt@codeaurora.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/tegra/Kconfig | 12 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/fb.c | 12 |
4 files changed, 11 insertions, 23 deletions
diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig index 74d9d621453d..63ebb154b9b5 100644 --- a/drivers/gpu/drm/tegra/Kconfig +++ b/drivers/gpu/drm/tegra/Kconfig | |||
@@ -16,18 +16,6 @@ config DRM_TEGRA | |||
16 | 16 | ||
17 | if DRM_TEGRA | 17 | if DRM_TEGRA |
18 | 18 | ||
19 | config DRM_TEGRA_FBDEV | ||
20 | bool "Enable legacy fbdev support" | ||
21 | select DRM_KMS_FB_HELPER | ||
22 | select FB_SYS_FILLRECT | ||
23 | select FB_SYS_COPYAREA | ||
24 | select FB_SYS_IMAGEBLIT | ||
25 | default y | ||
26 | help | ||
27 | Choose this option if you have a need for the legacy fbdev support. | ||
28 | Note that this support also provides the Linux console on top of | ||
29 | the Tegra modesetting driver. | ||
30 | |||
31 | config DRM_TEGRA_DEBUG | 19 | config DRM_TEGRA_DEBUG |
32 | bool "NVIDIA Tegra DRM debug support" | 20 | bool "NVIDIA Tegra DRM debug support" |
33 | help | 21 | help |
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 159ef515cab1..e0f827790a5e 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c | |||
@@ -106,7 +106,7 @@ static int tegra_atomic_commit(struct drm_device *drm, | |||
106 | 106 | ||
107 | static const struct drm_mode_config_funcs tegra_drm_mode_funcs = { | 107 | static const struct drm_mode_config_funcs tegra_drm_mode_funcs = { |
108 | .fb_create = tegra_fb_create, | 108 | .fb_create = tegra_fb_create, |
109 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 109 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
110 | .output_poll_changed = tegra_fb_output_poll_changed, | 110 | .output_poll_changed = tegra_fb_output_poll_changed, |
111 | #endif | 111 | #endif |
112 | .atomic_check = drm_atomic_helper_check, | 112 | .atomic_check = drm_atomic_helper_check, |
@@ -260,7 +260,7 @@ static void tegra_drm_context_free(struct tegra_drm_context *context) | |||
260 | 260 | ||
261 | static void tegra_drm_lastclose(struct drm_device *drm) | 261 | static void tegra_drm_lastclose(struct drm_device *drm) |
262 | { | 262 | { |
263 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 263 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
264 | struct tegra_drm *tegra = drm->dev_private; | 264 | struct tegra_drm *tegra = drm->dev_private; |
265 | 265 | ||
266 | tegra_fbdev_restore_mode(tegra->fbdev); | 266 | tegra_fbdev_restore_mode(tegra->fbdev); |
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index ec49275ffb24..942cad9b3ecb 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h | |||
@@ -30,7 +30,7 @@ struct tegra_fb { | |||
30 | unsigned int num_planes; | 30 | unsigned int num_planes; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 33 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
34 | struct tegra_fbdev { | 34 | struct tegra_fbdev { |
35 | struct drm_fb_helper base; | 35 | struct drm_fb_helper base; |
36 | struct tegra_fb *fb; | 36 | struct tegra_fb *fb; |
@@ -46,7 +46,7 @@ struct tegra_drm { | |||
46 | struct mutex clients_lock; | 46 | struct mutex clients_lock; |
47 | struct list_head clients; | 47 | struct list_head clients; |
48 | 48 | ||
49 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 49 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
50 | struct tegra_fbdev *fbdev; | 50 | struct tegra_fbdev *fbdev; |
51 | #endif | 51 | #endif |
52 | 52 | ||
@@ -273,7 +273,7 @@ int tegra_drm_fb_prepare(struct drm_device *drm); | |||
273 | void tegra_drm_fb_free(struct drm_device *drm); | 273 | void tegra_drm_fb_free(struct drm_device *drm); |
274 | int tegra_drm_fb_init(struct drm_device *drm); | 274 | int tegra_drm_fb_init(struct drm_device *drm); |
275 | void tegra_drm_fb_exit(struct drm_device *drm); | 275 | void tegra_drm_fb_exit(struct drm_device *drm); |
276 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 276 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
277 | void tegra_fbdev_restore_mode(struct tegra_fbdev *fbdev); | 277 | void tegra_fbdev_restore_mode(struct tegra_fbdev *fbdev); |
278 | void tegra_fb_output_poll_changed(struct drm_device *drm); | 278 | void tegra_fb_output_poll_changed(struct drm_device *drm); |
279 | #endif | 279 | #endif |
diff --git a/drivers/gpu/drm/tegra/fb.c b/drivers/gpu/drm/tegra/fb.c index 1004075fd088..bec07d934b3b 100644 --- a/drivers/gpu/drm/tegra/fb.c +++ b/drivers/gpu/drm/tegra/fb.c | |||
@@ -18,7 +18,7 @@ static inline struct tegra_fb *to_tegra_fb(struct drm_framebuffer *fb) | |||
18 | return container_of(fb, struct tegra_fb, base); | 18 | return container_of(fb, struct tegra_fb, base); |
19 | } | 19 | } |
20 | 20 | ||
21 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 21 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
22 | static inline struct tegra_fbdev *to_tegra_fbdev(struct drm_fb_helper *helper) | 22 | static inline struct tegra_fbdev *to_tegra_fbdev(struct drm_fb_helper *helper) |
23 | { | 23 | { |
24 | return container_of(helper, struct tegra_fbdev, base); | 24 | return container_of(helper, struct tegra_fbdev, base); |
@@ -181,7 +181,7 @@ unreference: | |||
181 | return ERR_PTR(err); | 181 | return ERR_PTR(err); |
182 | } | 182 | } |
183 | 183 | ||
184 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 184 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
185 | static struct fb_ops tegra_fb_ops = { | 185 | static struct fb_ops tegra_fb_ops = { |
186 | .owner = THIS_MODULE, | 186 | .owner = THIS_MODULE, |
187 | .fb_fillrect = drm_fb_helper_sys_fillrect, | 187 | .fb_fillrect = drm_fb_helper_sys_fillrect, |
@@ -370,7 +370,7 @@ void tegra_fb_output_poll_changed(struct drm_device *drm) | |||
370 | 370 | ||
371 | int tegra_drm_fb_prepare(struct drm_device *drm) | 371 | int tegra_drm_fb_prepare(struct drm_device *drm) |
372 | { | 372 | { |
373 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 373 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
374 | struct tegra_drm *tegra = drm->dev_private; | 374 | struct tegra_drm *tegra = drm->dev_private; |
375 | 375 | ||
376 | tegra->fbdev = tegra_fbdev_create(drm); | 376 | tegra->fbdev = tegra_fbdev_create(drm); |
@@ -383,7 +383,7 @@ int tegra_drm_fb_prepare(struct drm_device *drm) | |||
383 | 383 | ||
384 | void tegra_drm_fb_free(struct drm_device *drm) | 384 | void tegra_drm_fb_free(struct drm_device *drm) |
385 | { | 385 | { |
386 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 386 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
387 | struct tegra_drm *tegra = drm->dev_private; | 387 | struct tegra_drm *tegra = drm->dev_private; |
388 | 388 | ||
389 | tegra_fbdev_free(tegra->fbdev); | 389 | tegra_fbdev_free(tegra->fbdev); |
@@ -392,7 +392,7 @@ void tegra_drm_fb_free(struct drm_device *drm) | |||
392 | 392 | ||
393 | int tegra_drm_fb_init(struct drm_device *drm) | 393 | int tegra_drm_fb_init(struct drm_device *drm) |
394 | { | 394 | { |
395 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 395 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
396 | struct tegra_drm *tegra = drm->dev_private; | 396 | struct tegra_drm *tegra = drm->dev_private; |
397 | int err; | 397 | int err; |
398 | 398 | ||
@@ -407,7 +407,7 @@ int tegra_drm_fb_init(struct drm_device *drm) | |||
407 | 407 | ||
408 | void tegra_drm_fb_exit(struct drm_device *drm) | 408 | void tegra_drm_fb_exit(struct drm_device *drm) |
409 | { | 409 | { |
410 | #ifdef CONFIG_DRM_TEGRA_FBDEV | 410 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
411 | struct tegra_drm *tegra = drm->dev_private; | 411 | struct tegra_drm *tegra = drm->dev_private; |
412 | 412 | ||
413 | tegra_fbdev_exit(tegra->fbdev); | 413 | tegra_fbdev_exit(tegra->fbdev); |