diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-09-09 14:56:44 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-09-17 16:20:40 +0300 |
commit | d35a4bf66079b92e232ac85b08f19312be9b7eca (patch) | |
tree | 796be4525817b158c4d24256ef09c65396a75a28 /drivers/gpu/drm/gma500/psb_drv.c | |
parent | f3b173e9094f5b02fb92d641e3e71fee0bcda73a (diff) | |
download | linux-d35a4bf66079b92e232ac85b08f19312be9b7eca.tar.xz |
drm/gma500: Remove a couple of not useful function wrappers
The gma_crtc_set_config() and psb_unlocked_ioctl() functions are 1:1
wrappers for drm_helpers. Drop these wrappers.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220909115646.99920-5-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_drv.c')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 7a94e0d8fa6c..8266371aeac1 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -430,12 +430,6 @@ static inline void get_brightness(struct backlight_device *bd) #endif } -static long psb_unlocked_ioctl(struct file *filp, unsigned int cmd, - unsigned long arg) -{ - return drm_ioctl(filp, cmd, arg); -} - static int psb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { struct drm_psb_private *dev_priv; @@ -497,7 +491,7 @@ static const struct file_operations psb_gem_fops = { .owner = THIS_MODULE, .open = drm_open, .release = drm_release, - .unlocked_ioctl = psb_unlocked_ioctl, + .unlocked_ioctl = drm_ioctl, .compat_ioctl = drm_compat_ioctl, .mmap = drm_gem_mmap, .poll = drm_poll, |