[RFC PATCH 15/15] dt: eliminate of_platform_driver shim code

2011-02-22 Thread Grant Likely
Commit eca393016, "of: Merge of_platform_bus_type with platform_bus_type" added a shim to allow of_platform_drivers to get registers onto the platform bus so that there was time to migrate the existing drivers to the platform_bus_type. This patch removes the shim since there are no more users of t

[RFC PATCH 14/15] dt: Eliminate of_platform_{,un}register_driver

2011-02-22 Thread Grant Likely
Final step to eliminate of_platform_bus_type. They're all just platform drivers now. Signed-off-by: Grant Likely --- drivers/ata/pata_mpc52xx.c |8 drivers/ata/pata_of_platform.c |9 - drivers/ata/sata_dwc_460ex.c |9 - drivers/ata/sata_fsl.c

[RFC PATCH 13/15] dt/serial: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of users of of_platform_driver in drivers/serial. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely --- drivers/tty/serial/apbuart.c| 11 +-- dri

[RFC PATCH 12/15] dt/usb: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of users of of_platform_driver in drivers/usb. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely --- drivers/usb/gadget/fsl_qe_udc.c | 14 -- drivers/usb/h

[RFC PATCH 11/15] dt/video: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of users of of_platform_driver in drivers/video. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely --- drivers/video/bw2.c |8 drivers/video/cg1

[RFC PATCH 10/15] dt/net: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of users of of_platform_driver in drivers/net. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely --- drivers/net/can/mscan/mpc5xxx_can.c | 15 +--

[RFC PATCH 09/15] dt/sound: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of users of of_platform_driver in drivers/sound. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely --- sound/soc/fsl/fsl_dma.c |9 - sound/soc/fsl/fsl

[RFC PATCH 08/15] dt/spi: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of users of of_platform_driver in drivers/spi. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely --- drivers/spi/mpc512x_psc_spi.c |9 - drivers/spi/mpc52xx_ps

[RFC PATCH 07/15] dt: uartlite: merge platform and of_platform driver bindings

2011-02-22 Thread Grant Likely
of_platform_driver is getting removed, and a single platform_driver can now support both devicetree and non-devicetree use cases. This patch merges the two driver registrations. Signed-off-by: Grant Likely --- drivers/tty/serial/uartlite.c | 103 ++--- 1 fil

[RFC PATCH 06/15] dt: xilinx_hwicap: merge platform and of_platform driver bindings

2011-02-22 Thread Grant Likely
of_platform_driver is getting removed, and a single platform_driver can now support both devicetree and non-devicetree use cases. This patch merges the two driver registrations. Signed-off-by: Grant Likely --- drivers/char/xilinx_hwicap/xilinx_hwicap.c | 129 +++- 1 fil

[RFC PATCH 05/15] leds/leds-gpio: merge platform_driver with of_platform_driver

2011-02-22 Thread Grant Likely
Both interfaces can be driven with the same driver, and of_platform_driver is getting removed. This patch merges the two driver registrations. Signed-off-by: Grant Likely --- drivers/leds/leds-gpio.c | 206 +++--- 1 files changed, 83 insertions(+), 123 d

[RFC PATCH 04/15] dt/sparc: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of old users of of_platform_driver in arch/sparc. Most of_platform_driver users can be converted to use the platform_bus directly. Signed-off-by: Grant Likely --- arch/sparc/include/asm/parport.h|6 +++--- arch/sparc/kernel/apc.c |7 +++ arch/sparc/kernel/aux

[RFC PATCH 03/15] dt/powerpc: Eliminate users of of_platform_{, un}register_driver

2011-02-22 Thread Grant Likely
Get rid of old users of of_platform_driver in arch/powerpc. Most of_platform_driver users can be converted to use the platform_bus directly. Signed-off-by: Grant Likely --- arch/powerpc/kernel/of_platform.c |7 +++--- arch/powerpc/platforms/52xx/mpc52xx_gpio.c| 14 ++--

[RFC PATCH 02/15] dt: add a match table pointer to struct device

2011-02-22 Thread Grant Likely
Add a new .of_match field to struct device which points at the matching device driver .of_match_table entry when a device is probed via the device tree Signed-off-by: Grant Likely --- include/linux/device.h|1 + include/linux/of_device.h |5 +++-- 2 files changed, 4 insertions(+), 2

[RFC PATCH 01/15] dt/powerpc: move of_bus_type infrastructure to ibmebus

2011-02-22 Thread Grant Likely
arch/powerpc/kernel/ibmebus.c is the only remaining user of the of_bus_type support code for initializing the bus and registering drivers. All others have either been switched to the vanilla platform bus or already have their own infrastructure. This patch moves the functionality that ibmebus is

[RFC PATCH 00/15] Remove last remains of of_platform_bus_type

2011-02-22 Thread Grant Likely
This series finally removes all the remaining users of the of_platform_{,un}register_driver() functions that used to be sued with the of_platform_bus_type. All the cool kids are using the platform bus now. At the end of this series the ugly stop-gap shim code is finally removed. g. --- Grant L

powerpc/ptrace: Fix bug in signal handling

2011-02-22 Thread Michael Wolf
In some cases during a threaded core dump not all the threads will have a full register set. This will cause problems when the sigkill is sent to the thread Signed-off-by: Mike Wolf --- --- ptrace-signal.orig/arch/powerpc/kernel/ptrace.c 2011-02-20 12:15:57.0 -0600 +++