From: Lee Jones Date: Mon, 18 Aug 2014 14:05:01 +0000 (+0100) Subject: mfd: wm5102: Insert missing break in case statement X-Git-Tag: v3.18-rc1~40^2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=616e047992a4621a09ef45182076ff09b2495dec;p=thirdparty%2Fkernel%2Flinux.git mfd: wm5102: Insert missing break in case statement Chip identifier wm5102_reva_patch is always overwritten with wm5102_revb_patch, even when the code is run on a Rev-A chip. Place in the missing break to force the code into doing something sensible instead. Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c index fb4d4bb0f47d5..a219888d7f4b1 100644 --- a/drivers/mfd/wm5102-tables.c +++ b/drivers/mfd/wm5102-tables.c @@ -87,6 +87,7 @@ int wm5102_patch(struct arizona *arizona) case 0: wm5102_patch = wm5102_reva_patch; patch_size = ARRAY_SIZE(wm5102_reva_patch); + break; default: wm5102_patch = wm5102_revb_patch; patch_size = ARRAY_SIZE(wm5102_revb_patch);