diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm8350-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c index 60439bd3984d..764bf15ea684 100644 --- a/drivers/mfd/wm8350-core.c +++ b/drivers/mfd/wm8350-core.c | |||
@@ -1240,19 +1240,17 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq, | |||
1240 | switch ((id2 & WM8350_CHIP_REV_MASK) >> 12) { | 1240 | switch ((id2 & WM8350_CHIP_REV_MASK) >> 12) { |
1241 | case WM8350_REV_E: | 1241 | case WM8350_REV_E: |
1242 | dev_info(wm8350->dev, "Found Rev E device\n"); | 1242 | dev_info(wm8350->dev, "Found Rev E device\n"); |
1243 | wm8350->rev = WM8350_REV_E; | ||
1244 | break; | 1243 | break; |
1245 | case WM8350_REV_F: | 1244 | case WM8350_REV_F: |
1246 | dev_info(wm8350->dev, "Found Rev F device\n"); | 1245 | dev_info(wm8350->dev, "Found Rev F device\n"); |
1247 | wm8350->rev = WM8350_REV_F; | ||
1248 | break; | 1246 | break; |
1249 | case WM8350_REV_G: | 1247 | case WM8350_REV_G: |
1250 | dev_info(wm8350->dev, "Found Rev G device\n"); | 1248 | dev_info(wm8350->dev, "Found Rev G device\n"); |
1251 | wm8350->rev = WM8350_REV_G; | 1249 | wm8350->power.rev_g_coeff = 1; |
1252 | break; | 1250 | break; |
1253 | case WM8350_REV_H: | 1251 | case WM8350_REV_H: |
1254 | dev_info(wm8350->dev, "Found Rev H device\n"); | 1252 | dev_info(wm8350->dev, "Found Rev H device\n"); |
1255 | wm8350->rev = WM8350_REV_H; | 1253 | wm8350->power.rev_g_coeff = 1; |
1256 | break; | 1254 | break; |
1257 | default: | 1255 | default: |
1258 | /* For safety we refuse to run on unknown hardware */ | 1256 | /* For safety we refuse to run on unknown hardware */ |