summaryrefslogtreecommitdiff
path: root/drivers/staging/android
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-01-22 19:15:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 09:01:09 -0800
commit18691f53bcaab1226f22b733189ec9da190bb7a2 (patch)
tree1a106cf2155d3693da497c312090f099fb92de4a /drivers/staging/android
parent10f6f9c38a422451989eb4e36a14788b1799b491 (diff)
ion: dummy driver: use ARRAY_SIZE for nr of heaps
use ARRAY_SIZE to count number of heaps in static array Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r--drivers/staging/android/ion/ion_dummy_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c
index 3854df7d6629..f8a7a3244371 100644
--- a/drivers/staging/android/ion/ion_dummy_driver.c
+++ b/drivers/staging/android/ion/ion_dummy_driver.c
@@ -58,7 +58,7 @@ struct ion_platform_heap dummy_heaps[] = {
};
struct ion_platform_data dummy_ion_pdata = {
- .nr = 4,
+ .nr = ARRAY_SIZE(dummy_heaps),
.heaps = dummy_heaps,
};