mach-ux500: move the DB8500 PRCMU driver to MFD
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 15 May 2011 20:53:56 +0000 (22:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 24 May 2011 20:14:31 +0000 (22:14 +0200)
commit650c2a2145981696c414be1d540a32447d0e353e
treef05aadb054bffb88fee3056b78310b148ceed9bf
parent118718905de6e32c11e09a8f41c7abff6155ba19
mach-ux500: move the DB8500 PRCMU driver to MFD

We have decided that this function arbiter fits better in the MFD
subsystem. Since we need to concatenate the split header files we move
it basically like this:

mv mach-ux500/prcmu-db8500.c drivers/mfd/db8500-prcmu.c
mv mach-ux500/include/mach/prcmu-defs.h include/linux/mfd/db8500-prcmu.h
mv mach-ux500/include/mach/prcmu-regs.h drivers/mfd/db8500-prcmu-regs.h
mach-ux500/include/mach/prcmu.h >> include/linux/mfd/db8500-prcmu.h
rm arch/arm/mach-ux500/include/mach/prcmu.h

Then we update different #include statements and Makefile orders etc
to make the PRCMU driver compile, link and boot in the new place
without really changing any code.

Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 files changed:
arch/arm/mach-ux500/Kconfig
arch/arm/mach-ux500/Makefile
arch/arm/mach-ux500/cpu.c
arch/arm/mach-ux500/cpufreq.c
arch/arm/mach-ux500/include/mach/prcmu-defs.h [deleted file]
arch/arm/mach-ux500/include/mach/prcmu.h [deleted file]
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/ab8500-i2c.c
drivers/mfd/db8500-prcmu-regs.h [moved from arch/arm/mach-ux500/include/mach/prcmu-regs.h with 100% similarity]
drivers/mfd/db8500-prcmu.c [moved from arch/arm/mach-ux500/prcmu-db8500.c with 99% similarity]
include/linux/mfd/db8500-prcmu.h [new file with mode: 0644]