regulator/clk: Fix s2mps11 build
This patch fixes a build failure that appeared in v3.13-rc4 due to an RTC/MFD update merged via -mm. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAABAgAGBQJSr0jGAAoJELSic+t+oim9bWsP/26SiYoI/ulG76GyJQuPVuWj 21fRM0TEZaSVxZf4lzZahdak9kDg5wDFX15ii9PnIPJ8m5Nz5lHKLaKMXUEY8saA 9vUZBsZNVbyQ9i7uH1/3mPC1fA+3XqwXKPrp4roIv5kFYCRFD+NDyBoCwl/FNvTE u72A9nmojJv6C0UuExFtyXRiJnAn2goXYQ0JvlFKrezv7yStNGNXakIH1za1gEOq hdMIkJ9r5/jZFIGKr7SHZjsGYqwngKfVfaSdBeWZqp6Z0FHf7MRI6aJ/TcwpkLFH HNezPznw1/CzAHmHAyszbcIMIh/GHxJzDldUr4g+kwForjJGaYIcrimxFPtcmW9P MhJ5DdO765aqp24cImo1aNJXMnJYTFDguMWSCWLwxNSmlpQYg2iEiKF2astcCb+p 3v4cj9EYnEiPdKwSmA/kCb7fiEnefHm8vLMgRZwXIXiDfDSub4JPya+L4SxHFMAZ OxZyk/ZGPNkDAsyKUx3KQMw4Gmvbro/TJMLn73CgdrW++39/CbSzl5hM8oRMpeMn LTvBQOViAODlODQDI9B1gOqd4c/9zE1wGgY64rE7MtzlhlcPNhXYjL/Cb7+JNZ49 Mp6nxt/yH7rlFMdpIC0GgsgBP4ilh3GeLDZDi+AhnbD1773Yn/mCA4cohfpUug6j Yme3Jd3/zWHrUkUPjkfO =t/v5 -----END PGP SIGNATURE----- Merge tag 's2mps11-build' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator/clk fix from Mark Brown: "Fix s2mps11 build This patch fixes a build failure that appeared in v3.13-rc4 due to an RTC/MFD update merged via -mm" * tag 's2mps11-build' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: mfd: s2mps11: Fix build after regmap field rename in sec-core.c
This commit is contained in:
commit
b0031f227e
|
@ -60,7 +60,7 @@ static int s2mps11_clk_prepare(struct clk_hw *hw)
|
||||||
struct s2mps11_clk *s2mps11 = to_s2mps11_clk(hw);
|
struct s2mps11_clk *s2mps11 = to_s2mps11_clk(hw);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = regmap_update_bits(s2mps11->iodev->regmap,
|
ret = regmap_update_bits(s2mps11->iodev->regmap_pmic,
|
||||||
S2MPS11_REG_RTC_CTRL,
|
S2MPS11_REG_RTC_CTRL,
|
||||||
s2mps11->mask, s2mps11->mask);
|
s2mps11->mask, s2mps11->mask);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
@ -74,7 +74,7 @@ static void s2mps11_clk_unprepare(struct clk_hw *hw)
|
||||||
struct s2mps11_clk *s2mps11 = to_s2mps11_clk(hw);
|
struct s2mps11_clk *s2mps11 = to_s2mps11_clk(hw);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = regmap_update_bits(s2mps11->iodev->regmap, S2MPS11_REG_RTC_CTRL,
|
ret = regmap_update_bits(s2mps11->iodev->regmap_pmic, S2MPS11_REG_RTC_CTRL,
|
||||||
s2mps11->mask, ~s2mps11->mask);
|
s2mps11->mask, ~s2mps11->mask);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
@ -174,7 +174,7 @@ static int s2mps11_clk_probe(struct platform_device *pdev)
|
||||||
s2mps11_clk->hw.init = &s2mps11_clks_init[i];
|
s2mps11_clk->hw.init = &s2mps11_clks_init[i];
|
||||||
s2mps11_clk->mask = 1 << i;
|
s2mps11_clk->mask = 1 << i;
|
||||||
|
|
||||||
ret = regmap_read(s2mps11_clk->iodev->regmap,
|
ret = regmap_read(s2mps11_clk->iodev->regmap_pmic,
|
||||||
S2MPS11_REG_RTC_CTRL, &val);
|
S2MPS11_REG_RTC_CTRL, &val);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err_reg;
|
goto err_reg;
|
||||||
|
|
|
@ -438,7 +438,7 @@ common_reg:
|
||||||
platform_set_drvdata(pdev, s2mps11);
|
platform_set_drvdata(pdev, s2mps11);
|
||||||
|
|
||||||
config.dev = &pdev->dev;
|
config.dev = &pdev->dev;
|
||||||
config.regmap = iodev->regmap;
|
config.regmap = iodev->regmap_pmic;
|
||||||
config.driver_data = s2mps11;
|
config.driver_data = s2mps11;
|
||||||
for (i = 0; i < S2MPS11_REGULATOR_MAX; i++) {
|
for (i = 0; i < S2MPS11_REGULATOR_MAX; i++) {
|
||||||
if (!reg_np) {
|
if (!reg_np) {
|
||||||
|
|
Loading…
Reference in New Issue