]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Fix i2c-powermac platform device usage
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Oct 2006 01:45:45 +0000 (11:45 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 10 Oct 2006 03:56:13 +0000 (13:56 +1000)
commit9f2545c11869868fd3cde7098d99e690891e442c
treee0e22ce8b9aaef7f29175a0841859c309c6090a7
parentd6a29252ad120457cd544d44b2fbea46a00734a7
[POWERPC] Fix i2c-powermac platform device usage

i2c-powermac was written & merged right after Russell King's changes
adding platform_driver... which I missed. Thus it still used struct
device, causing crashes when hitting sleep/wakeup callbacks (it happened
to work by luck so far, until early/late callbacks got added). This
causes crashes on sleep/wakeup on PowerBooks with 2.6.19. The patch
fixes it by using a proper platform_driver.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/i2c/busses/i2c-powermac.c