Skip to contentSkip to conversation

imx-drm: imx-drm-core: Convert to drm_is_master()

PATCH In review Fabio Estevam 2 participants 2 messages Jul 25, 2014

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 imx-drm: imx-drm-core: Convert to drm_is_master()

From: Fabio Estevam <[email protected]>

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'

---
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(-)
drivers/staging/imx-drm/imx-drm-core.c +1 -1
index 6b22106..7974854 100644
@@ -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++)
Signature · 1 line
1.8.3.2
#1 lore raw

Hi

Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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'

Sorry, I totally missed staging. I amended the imx changes now.

Thanks
David

Quoted 22 lines

---
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(-)
drivers/staging/imx-drm/imx-drm-core.c +1 -2
index 6b22106..7974854 100644
@@ -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