Skip to content

Commit

Permalink
drm/gma500: remove stub .open/postclose
Browse files Browse the repository at this point in the history
These are unused and can safely be dropped. DRM core verifies they're
non-NULL before it calls them.

Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
  • Loading branch information
David Herrmann authored and Patrik Jakobsson committed Mar 17, 2014
1 parent 9083eb3 commit 7514409
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/gpu/drm/gma500/psb_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,6 @@ static inline void get_brightness(struct backlight_device *bd)
#endif
}

static int psb_driver_open(struct drm_device *dev, struct drm_file *priv)
{
return 0;
}

static void psb_driver_postclose(struct drm_device *dev, struct drm_file *priv)
{
}

static long psb_unlocked_ioctl(struct file *filp, unsigned int cmd,
unsigned long arg)
{
Expand Down Expand Up @@ -485,10 +476,8 @@ static struct drm_driver driver = {
DRIVER_MODESET | DRIVER_GEM,
.load = psb_driver_load,
.unload = psb_driver_unload,
.open = psb_driver_open,
.lastclose = psb_driver_lastclose,
.preclose = psb_driver_preclose,
.postclose = psb_driver_postclose,

.num_ioctls = DRM_ARRAY_SIZE(psb_ioctls),
.device_is_agp = psb_driver_device_is_agp,
Expand Down

0 comments on commit 7514409

Please sign in to comment.