All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call
@ 2012-10-25 14:12 Charles Keepax
  2012-10-25 16:02 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Keepax @ 2012-10-25 14:12 UTC (permalink / raw)
  To: broonie, sameo; +Cc: patches, linux-kernel

wm5102_devs array was used for ARRAY_SIZE whilst adding the wm5110
devices. This change corrects this to get the size from the wm5110_devs
array. As both arrays are the same size no issues should have been
caused by this bug.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/mfd/arizona-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index 1b48f20..166254b 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -520,7 +520,7 @@ int __devinit arizona_dev_init(struct arizona *arizona)
 		break;
 	case WM5110:
 		ret = mfd_add_devices(arizona->dev, -1, wm5110_devs,
-				      ARRAY_SIZE(wm5102_devs), NULL, 0, NULL);
+				      ARRAY_SIZE(wm5110_devs), NULL, 0, NULL);
 		break;
 	}
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call
  2012-10-25 14:12 [PATCH 1/2] mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call Charles Keepax
@ 2012-10-25 16:02 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-10-25 16:02 UTC (permalink / raw)
  To: Charles Keepax; +Cc: sameo, patches, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

On Thu, Oct 25, 2012 at 03:12:44PM +0100, Charles Keepax wrote:
> wm5102_devs array was used for ARRAY_SIZE whilst adding the wm5110
> devices. This change corrects this to get the size from the wm5110_devs
> array. As both arrays are the same size no issues should have been
> caused by this bug.

Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-25 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 14:12 [PATCH 1/2] mfd: arizona: Use correct array for ARRAY_SIZE in mfd_add_devices call Charles Keepax
2012-10-25 16:02 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.