CHROMIUM: exynos: Don't enable WiFi "regulators" more than once

The WiFi enable/reset "regulators" were "enabled" each time we turned
on the LCD and never disabled.  This just kept incrementing the
refcount over and over again and prevented the
mwifiex_sdio_mwi87xx_reset() from working.

Change the code to only enable the regulators once.

BUG=chrome-os-partner:20221
TEST=Run this before and after suspend/resume and see 1 each time:
 cd /sys/class/regulator
 cd $(grep wifi-en */name | cut -d/ -f1)
 grep "" num_users
TEST=WiFi works across suspend/resume

Change-Id: I23f43632fea02bf5dd7186d1f1badf689675bfdf
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/64844
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Ashok Nagarajan <asnagarajan@chromium.org>
Tested-by: Ashok Nagarajan <asnagarajan@chromium.org>
1 file changed