diff options
Diffstat (limited to 'linux/drm_ioctl.h')
-rw-r--r-- | linux/drm_ioctl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drm_ioctl.h b/linux/drm_ioctl.h index 2ecce48f..049afe11 100644 --- a/linux/drm_ioctl.h +++ b/linux/drm_ioctl.h @@ -342,9 +342,10 @@ int DRM(setversion)(DRM_IOCTL_ARGS) if (sv.drm_dd_major != DRIVER_MAJOR || sv.drm_dd_minor < 0 || sv.drm_dd_minor > DRIVER_MINOR) return EINVAL; -#ifdef DRIVER_SETVERSION - DRIVER_SETVERSION(dev, &sv); -#endif + + if (dev->fn_tbl.set_version) + dev->fn_tbl.set_version(dev, &sv); + } return 0; } |