power: make pfuze100 be able to coexist with other pmics

Avoid uding pmic_init() as this forces the model of only allowing a
single PMIC driver to be built at a time.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
master
Tim Harvey 11 years ago committed by Stefano Babic
parent 3deb22a484
commit 93a6d92cfa
  1. 2
      drivers/power/pmic/pmic_pfuze100.c
  2. 1
      include/power/pfuze100_pmic.h

@ -11,7 +11,7 @@
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
int pmic_init(unsigned char bus)
int power_pfuze100_init(unsigned char bus)
{
static const char name[] = "PFUZE100_PMIC";
struct pmic *p = pmic_alloc();

@ -93,4 +93,5 @@ enum {
#define SWBST_MODE_AUTO (2 << 2)
#define SWBST_MODE_APS (2 << 3)
int power_pfuze100_init(unsigned char bus);
#endif

Loading…
Cancel
Save