From: Jim Cromie Date: Wed, 11 Apr 2012 00:55:56 +0000 (-0600) Subject: mtd: lpddr: replace open-coded ARRAY_SIZE with macro X-Git-Tag: MMI-PSA29.97-13-9~16607^2~66 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=287558fe0e06a85c32863ec9204ed39fc218c5e3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mtd: lpddr: replace open-coded ARRAY_SIZE with macro Signed-off-by: Jim Cromie Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/lpddr/qinfo_probe.c b/drivers/mtd/lpddr/qinfo_probe.c index dbfe17baf046..45abed67f1ef 100644 --- a/drivers/mtd/lpddr/qinfo_probe.c +++ b/drivers/mtd/lpddr/qinfo_probe.c @@ -57,7 +57,7 @@ static struct qinfo_query_info qinfo_array[] = { static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) { - int qinfo_lines = sizeof(qinfo_array)/sizeof(struct qinfo_query_info); + int qinfo_lines = ARRAY_SIZE(qinfo_array); int i; int bankwidth = map_bankwidth(map) * 8; int major, minor;