[PATCH] imx-drm: imx-drm-core: Convert to drm_is_master()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>

Since commit fe32c9f34b9e ("drm: drop redundant drm_file->is_master")
we should use drm_is_master, otherwise the following build error is seen:

drivers/staging/imx-drm/imx-drm-core.c: In function 'imx_drm_driver_preclose':
drivers/staging/imx-drm/imx-drm-core.c:185:11: error: 'struct drm_file' has no member named 'is_master'

Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> 
Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
---
This one should go via David Herrmann's tree.

 drivers/staging/imx-drm/imx-drm-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c
index 6b22106..7974854 100644
--- a/drivers/staging/imx-drm/imx-drm-core.c
+++ b/drivers/staging/imx-drm/imx-drm-core.c
@@ -182,7 +182,7 @@ static void imx_drm_driver_preclose(struct drm_device *drm,
 {
 	int i;
 
-	if (!file->is_master)
+	if (!drm_is_master(file))
 		return;
 
 	for (i = 0; i < MAX_CRTC; i++)
-- 
1.8.3.2

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux