diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-07-07 19:17:53 +1000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-07-08 07:55:47 +0200 |
commit | 96c801bfe94373741773244430485b4b694700dd (patch) | |
tree | a6844b506748ee350848c83f856e0ece5afef83b | |
parent | 4b7910635de3ae31da83e9da03376d31f91df081 (diff) |
mainboard/hp/dl145_g3/get_bus_conf.c: Use ARRAY_SIZE macro
Change-Id: Ie3287cba45bd6f4f8823ce03cd9983707c9ad0de
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6194
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
-rw-r--r-- | src/mainboard/hp/dl145_g3/get_bus_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/hp/dl145_g3/get_bus_conf.c b/src/mainboard/hp/dl145_g3/get_bus_conf.c index cef2886f7e..ba0fc886e1 100644 --- a/src/mainboard/hp/dl145_g3/get_bus_conf.c +++ b/src/mainboard/hp/dl145_g3/get_bus_conf.c @@ -82,7 +82,7 @@ void get_bus_conf(void) m = sysconf.mb; - sysconf.hc_possible_num = sizeof(pci1234x)/sizeof(pci1234x[0]); + sysconf.hc_possible_num = ARRAY_SIZE(pci1234x); for(i=0;i<sysconf.hc_possible_num; i++) { sysconf.pci1234[i] = pci1234x[i]; |