Merge tag 'regulator-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Apr 2012 17:26:41 +0000 (10:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Apr 2012 17:26:41 +0000 (10:26 -0700)
Pull a regulator build fix from Mark Brown:
 "Fix a build warning in the anatop driver for 3.4

  This is a trivial rename to stop the build system complaining that
  we're referencing things we shouldn't be."

* tag 'regulator-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
  regulator: anatop: fix 'anatop_regulator' name collision

1  2 
drivers/regulator/anatop-regulator.c

@@@ -138,10 -138,9 +138,10 @@@ static int __devinit anatop_regulator_p
        rdesc->type = REGULATOR_VOLTAGE;
        rdesc->owner = THIS_MODULE;
        sreg->mfd = anatopmfd;
 -      ret = of_property_read_u32(np, "reg", &sreg->control_reg);
 +      ret = of_property_read_u32(np, "anatop-reg-offset",
 +                                 &sreg->control_reg);
        if (ret) {
 -              dev_err(dev, "no reg property set\n");
 +              dev_err(dev, "no anatop-reg-offset property set\n");
                goto anatop_probe_end;
        }
        ret = of_property_read_u32(np, "anatop-vol-bit-width",
@@@ -214,7 -213,7 +214,7 @@@ static struct of_device_id __devinitdat
        { /* end */ }
  };
  
- static struct platform_driver anatop_regulator = {
+ static struct platform_driver anatop_regulator_driver = {
        .driver = {
                .name   = "anatop_regulator",
                .owner  = THIS_MODULE,
  
  static int __init anatop_regulator_init(void)
  {
-       return platform_driver_register(&anatop_regulator);
+       return platform_driver_register(&anatop_regulator_driver);
  }
  postcore_initcall(anatop_regulator_init);
  
  static void __exit anatop_regulator_exit(void)
  {
-       platform_driver_unregister(&anatop_regulator);
+       platform_driver_unregister(&anatop_regulator_driver);
  }
  module_exit(anatop_regulator_exit);