[PATCH 01/10] drm/ttm: Remove TTM_HAS_AGP

Emil Velikov emil.l.velikov at gmail.com
Wed Mar 30 10:48:04 UTC 2016


On 30 March 2016 at 10:45, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:

> --- a/drivers/gpu/drm/Kconfig
> +++ b/drivers/gpu/drm/Kconfig
> @@ -83,6 +83,7 @@ config DRM_LOAD_EDID_FIRMWARE
>  config DRM_TTM
>         tristate
>         depends on DRM
> +       depends on (AGP || AGP=n)
Already part of config DRM, so we don't need it here ?


> --- a/include/drm/ttm/ttm_bo_driver.h
> +++ b/include/drm/ttm/ttm_bo_driver.h
> @@ -1030,8 +1030,7 @@ extern pgprot_t ttm_io_prot(uint32_t caching_flags, pgprot_t tmp);
>
>  extern const struct ttm_mem_type_manager_func ttm_bo_manager_func;
>
> -#if (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE)))
> -#define TTM_HAS_AGP
> +#ifdef CONFIG_AGP
#if IS_ENABLED(CONFIG_AGP) ?

-Emil


More information about the dri-devel mailing list