summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDamien Lespiau2014-06-09 15:39:49 +0200
committerDave Airlie2014-06-10 01:36:17 +0200
commitf95aeb17f57c4c98b7f33627e5f51353fd094a93 (patch)
tree4c821c2597989284072e77f9be08beb03fb4c4f3 /include/drm
parentdrm: Remove spurious ';' (diff)
downloadkernel-qcow2-linux-f95aeb17f57c4c98b7f33627e5f51353fd094a93.tar.gz
kernel-qcow2-linux-f95aeb17f57c4c98b7f33627e5f51353fd094a93.tar.xz
kernel-qcow2-linux-f95aeb17f57c4c98b7f33627e5f51353fd094a93.zip
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 'include/drm')
-rw-r--r--include/drm/drmP.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 83222db41566..8af71a8e2c00 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -234,8 +234,6 @@ int drm_err(const char *func, const char *format, ...);
/** \name Internal types and structures */
/*@{*/
-#define DRM_ARRAY_SIZE(x) ARRAY_SIZE(x)
-
#define DRM_IF_VERSION(maj, min) (maj << 16 | min)
/**