Skip to content

Commit 0424fda

Browse files
committed
drm/prime: Actually remove DRIVER_PRIME everywhere
Split out to make the functional changes stick out more. All places where DRIVER_PRIME was used have been removed in previous patches already. v2: amdgpu gained DRIVER_SYNCOBJ_TIMELINE. v3: amdgpu lost DRIVER_SYNCOBJ_TIMELINE. v4: Don't add a space in i915_drv.c (Sam) v5: Add note that previous patches removed all the DRIVER_PRIME users already (Emil). v6: Fixupe ingenic (new driver) while applying. Cc: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Cc: amd-gfx@lists.freedesktop.org Cc: etnaviv@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org Cc: lima@lists.freedesktop.org Cc: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-arm-msm@vger.kernel.org Cc: linux-aspeed@lists.ozlabs.org Cc: linux-renesas-soc@vger.kernel.org Cc: linux-rockchip@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-tegra@vger.kernel.org Cc: nouveau@lists.freedesktop.org Cc: NXP Linux Team <linux-imx@nxp.com> Cc: spice-devel@lists.freedesktop.org Cc: virtualization@lists.linux-foundation.org Cc: VMware Graphics <linux-graphics-maintainer@vmware.com> Cc: xen-devel@lists.xenproject.org Link: https://patchwork.freedesktop.org/patch/msgid/20190617153924.414-1-daniel.vetter@ffwll.ch
1 parent ee8375d commit 0424fda

55 files changed

Lines changed: 51 additions & 96 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ static struct drm_driver kms_driver = {
13091309
.driver_features =
13101310
DRIVER_USE_AGP | DRIVER_ATOMIC |
13111311
DRIVER_GEM |
1312-
DRIVER_PRIME | DRIVER_RENDER | DRIVER_MODESET | DRIVER_SYNCOBJ,
1312+
DRIVER_RENDER | DRIVER_MODESET | DRIVER_SYNCOBJ,
13131313
.load = amdgpu_driver_load_kms,
13141314
.open = amdgpu_driver_open_kms,
13151315
.postclose = amdgpu_driver_postclose_kms,

‎drivers/gpu/drm/arc/arcpgu_drv.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ static int arcpgu_debugfs_init(struct drm_minor *minor)
135135
#endif
136136

137137
static struct drm_driver arcpgu_drm_driver = {
138-
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME |
139-
DRIVER_ATOMIC,
138+
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC,
140139
.name = "arcpgu",
141140
.desc = "ARC PGU Controller",
142141
.date = "20160219",

‎drivers/gpu/drm/arm/display/komeda/komeda_kms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static irqreturn_t komeda_kms_irq_handler(int irq, void *data)
5656

5757
static struct drm_driver komeda_kms_driver = {
5858
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
59-
DRIVER_PRIME | DRIVER_HAVE_IRQ,
59+
DRIVER_HAVE_IRQ,
6060
.lastclose = drm_fb_helper_lastclose,
6161
.irq_handler = komeda_kms_irq_handler,
6262
.gem_free_object_unlocked = drm_gem_cma_free_object,

‎drivers/gpu/drm/arm/hdlcd_drv.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ static int hdlcd_debugfs_init(struct drm_minor *minor)
229229
DEFINE_DRM_GEM_CMA_FOPS(fops);
230230

231231
static struct drm_driver hdlcd_driver = {
232-
.driver_features = DRIVER_GEM |
233-
DRIVER_MODESET | DRIVER_PRIME |
234-
DRIVER_ATOMIC,
232+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
235233
.irq_handler = hdlcd_irq,
236234
.irq_preinstall = hdlcd_irq_preinstall,
237235
.irq_postinstall = hdlcd_irq_postinstall,

‎drivers/gpu/drm/arm/malidp_drv.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,7 @@ static int malidp_debugfs_init(struct drm_minor *minor)
568568
#endif //CONFIG_DEBUG_FS
569569

570570
static struct drm_driver malidp_driver = {
571-
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
572-
DRIVER_PRIME,
571+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
573572
.gem_free_object_unlocked = drm_gem_cma_free_object,
574573
.gem_vm_ops = &drm_gem_cma_vm_ops,
575574
.dumb_create = malidp_dumb_create,

‎drivers/gpu/drm/armada/armada_drv.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ static struct drm_driver armada_drm_driver = {
4343
.name = "armada-drm",
4444
.desc = "Armada SoC DRM",
4545
.date = "20120730",
46-
.driver_features = DRIVER_GEM | DRIVER_MODESET |
47-
DRIVER_PRIME | DRIVER_ATOMIC,
46+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
4847
.ioctls = armada_ioctls,
4948
.fops = &armada_drm_fops,
5049
};

‎drivers/gpu/drm/aspeed/aspeed_gfx_drv.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ static void aspeed_gfx_unload(struct drm_device *drm)
194194
DEFINE_DRM_GEM_CMA_FOPS(fops);
195195

196196
static struct drm_driver aspeed_gfx_driver = {
197-
.driver_features = DRIVER_GEM | DRIVER_MODESET |
198-
DRIVER_PRIME | DRIVER_ATOMIC,
197+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
199198
.gem_create_object = drm_cma_gem_create_object_default_funcs,
200199
.dumb_create = drm_gem_cma_dumb_create,
201200
.prime_handle_to_fd = drm_gem_prime_handle_to_fd,

‎drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,7 @@ static void atmel_hlcdc_dc_irq_uninstall(struct drm_device *dev)
834834
DEFINE_DRM_GEM_CMA_FOPS(fops);
835835

836836
static struct drm_driver atmel_hlcdc_dc_driver = {
837-
.driver_features = DRIVER_GEM |
838-
DRIVER_MODESET | DRIVER_PRIME |
839-
DRIVER_ATOMIC,
837+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
840838
.irq_handler = atmel_hlcdc_dc_irq_handler,
841839
.irq_preinstall = atmel_hlcdc_dc_irq_uninstall,
842840
.irq_postinstall = atmel_hlcdc_dc_irq_postinstall,

‎drivers/gpu/drm/bochs/bochs_drv.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ static const struct file_operations bochs_fops = {
6565
};
6666

6767
static struct drm_driver bochs_driver = {
68-
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
69-
DRIVER_PRIME,
68+
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
7069
.fops = &bochs_fops,
7170
.name = "bochs-drm",
7271
.desc = "bochs dispi vga interface (qemu stdvga)",

‎drivers/gpu/drm/cirrus/cirrus.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static void cirrus_mode_config_init(struct cirrus_device *cirrus)
513513
DEFINE_DRM_GEM_SHMEM_FOPS(cirrus_fops);
514514

515515
static struct drm_driver cirrus_driver = {
516-
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC | DRIVER_PRIME,
516+
.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC,
517517

518518
.name = DRIVER_NAME,
519519
.desc = DRIVER_DESC,

0 commit comments

Comments
 (0)