spi/pxa2xx: register driver properly
commitfbd29a14af42d374ddce9c16ff5f7805e69c764f
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 19 Nov 2010 17:00:11 +0000 (19 09:00 -0800)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 26 Nov 2010 10:29:02 +0000 (26 11:29 +0100)
tree1f4df085215624430a3d093d010f464301535c23
parent3561d43fd289f590fdae672e5eb831b8d5cf0bf6
spi/pxa2xx: register driver properly

use platform_driver_register instead of platform_driver_probe. The
latter only checks available devices at the time of calling. So if a
device gets inserter at a later point in time then the driver will never
play with it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
drivers/spi/pxa2xx_spi.c