Explorar o código

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 <lee.jones@linaro.org>
Lee Jones %!s(int64=11) %!d(string=hai) anos
pai
achega
616e047992
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/mfd/wm5102-tables.c

+ 1 - 0
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);