]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Fix modular builds of rc5t583 regulator support
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 16 Apr 2012 19:24:32 +0000 (21:24 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Apr 2012 19:24:32 +0000 (21:24 +0200)
commitc70d084e729a6baebf74febe7fa54d50813b21ba
tree1da4b77a5ac086b43fca8664167eaeb7fd95294c
parentbd137bc20956254595e5a3e4a147eed64aef8327
mfd: Fix modular builds of rc5t583 regulator support

The combination of commit 1b1247dd75aa5cf5fae54a3bec7280046e9c7957

    "mfd: Add support for RICOH PMIC RC5T583"

and commit 6ffc3270210efa2bea526953a142ffc908f5bd86

    "regulator: Add support for RICOH PMIC RC5T583 regulator"

are causing the i386 allmodconfig builds to fail with this:

  ERROR: "rc5t583_update" [drivers/regulator/rc5t583-regulator.ko] undefined!
  ERROR: "rc5t583_set_bits" [drivers/regulator/rc5t583-regulator.ko] undefined!
  ERROR: "rc5t583_clear_bits" [drivers/regulator/rc5t583-regulator.ko] undefined!
  ERROR: "rc5t583_read" [drivers/regulator/rc5t583-regulator.ko] undefined!

and this:

  ERROR: "rc5t583_ext_power_req_config" [drivers/regulator/rc5t583-regulator.ko] undefined!

For the 1st four, make the simple ops static inline, instead of
polluting the namespace with trivial exports.  For the last one,
add an EXPORT_SYMBOL.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/rc5t583.c
include/linux/mfd/rc5t583.h