From: Paul Walmsley Date: Sun, 10 Jul 2011 01:14:05 +0000 (-0600) Subject: omap_hwmod: use a null structure record to terminate omap_hwmod_addr_space arrays X-Git-Tag: v3.1-rc1~248^2~1^4^2^3~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78183f3fdf76f422431a81852468be01b36db325;p=pandora-kernel.git omap_hwmod: use a null structure record to terminate omap_hwmod_addr_space arrays Previously, struct omap_hwmod_addr_space arrays were unterminated; and users of these arrays used the ARRAY_SIZE() macro to determine the length of the array. However, ARRAY_SIZE() only works when the array is in the same scope as the macro user. So far this hasn't been a problem. However, to reduce duplicated data, a subsequent patch will move common data to a separate, shared file. When this is done, ARRAY_SIZE() will no longer be usable. This patch removes ARRAY_SIZE() usage for struct omap_hwmod_addr_space arrays and uses a null structure member as the array terminator instead. Signed-off-by: Paul Walmsley --- Reading git-diff-tree failed