diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-09 10:30:10 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-03-11 12:07:16 +1100 |
commit | 8311d570bcb3faea68941ebd5e240eb2e96d65a0 (patch) | |
tree | 5f0670d6c67e8eeae3fcb21a567d1d9fe2b84342 /drivers/char/drm/drm_proc.c | |
parent | f54d1e40b2732cd882646de3c860d24a6920cbc2 (diff) |
drm: Use ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_proc.c')
-rw-r--r-- | drivers/char/drm/drm_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_proc.c b/drivers/char/drm/drm_proc.c index 7fd0da71214..b204498d1a2 100644 --- a/drivers/char/drm/drm_proc.c +++ b/drivers/char/drm/drm_proc.c @@ -72,7 +72,7 @@ static struct drm_proc_list { #endif }; -#define DRM_PROC_ENTRIES (sizeof(drm_proc_list)/sizeof(drm_proc_list[0])) +#define DRM_PROC_ENTRIES ARRAY_SIZE(drm_proc_list) /** * Initialize the DRI proc filesystem for a device. |