diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-06-09 17:39:49 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-06-10 03:36:17 +0400 |
commit | f95aeb17f57c4c98b7f33627e5f51353fd094a93 (patch) | |
tree | 4c821c2597989284072e77f9be08beb03fb4c4f3 /drivers/gpu/drm/mga/mga_state.c | |
parent | 10d9b4ed3077df3288daff730173939fdf7d3183 (diff) | |
download | linux-f95aeb17f57c4c98b7f33627e5f51353fd094a93.tar.xz |
drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE()
I cannot see a need to provide a DRM_ version of ARRAY_SIZE(), only used
in a few places. I suspect its usage has been spread by copy & paste
rather than anything else.
Let's just remove it for plain ARRAY_SIZE().
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/mga/mga_state.c')
-rw-r--r-- | drivers/gpu/drm/mga/mga_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mga/mga_state.c b/drivers/gpu/drm/mga/mga_state.c index 3cb58df5237e..792f924496fc 100644 --- a/drivers/gpu/drm/mga/mga_state.c +++ b/drivers/gpu/drm/mga/mga_state.c @@ -1099,4 +1099,4 @@ const struct drm_ioctl_desc mga_ioctls[] = { DRM_IOCTL_DEF_DRV(MGA_DMA_BOOTSTRAP, mga_dma_bootstrap, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY), }; -int mga_max_ioctl = DRM_ARRAY_SIZE(mga_ioctls); +int mga_max_ioctl = ARRAY_SIZE(mga_ioctls); |