Paul Mundt
5c2de44417
dmaengine: shdma: Fix up fallout from runtime PM changes.
The runtime PM changes introduce sh_dmae_rst() wrapping via the
runtime_resume helper, depending on dev_get_drvdata() to fetch the
platform data needed for the DMAOR initialization default at a time
where drvdata hasn't yet been established by the probe path, resulting
in general probe misery:
Unable to handle kernel NULL pointer dereference at virtual address 000000c4
pc = 8025adee
*pde = 00000000
Oops: 0000 [#1]
Modules linked in:
Pid : 1, Comm: swapper
CPU : 0 Not tainted (3.0.0-rc1-00012-g9436b4a-dirty #1456)
PC is at sh_dmae_rst+0x28/0x86
PR is at sh_dmae_rst+0x22/0x86
PC : 8025adee SP : 9e803d10 SR : 400080f1 TEA : 000000c4
R0 : 000000c4 R1 : 0000fff8 R2 : 00000000 R3 : 00000040
R4 : 000000f0 R5 : 00000000 R6 : 00000000 R7 : 804f184c
R8 : 00000000 R9 : 804dd0e8 R10 : 80283204 R11 : ffffffda
R12 : 000000a0 R13 : 804dd18c R14 : 9e803d10
MACH: 00000000 MACL: 00008f20 GBR : 00000000 PR : 8025ade8
Call trace:
[<8025ae70>] sh_dmae_runtime_resume+0x24/0x34
[<80283238>] pm_generic_runtime_resume+0x34/0x3c
[<80283370>] rpm_callback+0x4a/0x7e
[<80283efc>] rpm_resume+0x240/0x384
[<80283f54>] rpm_resume+0x298/0x384
[<8028428c>] __pm_runtime_resume+0x44/0x7c
[<8038a358>] __ioremap_caller+0x0/0xec
[<80284296>] __pm_runtime_resume+0x4e/0x7c
[<8038a358>] __ioremap_caller+0x0/0xec
[<80666254>] sh_dmae_probe+0x180/0x6a0
[<802803ae>] platform_drv_probe+0x26/0x2e
Fix up the ordering accordingly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2011-05-31 15:53:03 +09:00
..
2011-05-29 11:19:16 -07:00
2011-05-26 10:33:34 +01:00
2011-05-25 09:14:07 -07:00
2011-05-25 08:39:07 -07:00
2011-05-26 17:12:32 -07:00
2011-05-29 11:18:09 -07:00
2011-05-24 13:28:35 -07:00
2011-05-26 17:12:37 -07:00
2011-05-31 15:26:42 +09:00
2011-05-24 22:20:14 +02:00
2011-05-29 11:18:09 -07:00
2011-05-31 15:53:03 +09:00
2011-05-26 17:12:37 -07:00
2011-05-29 14:06:42 -07:00
2011-05-25 08:39:26 -07:00
2011-05-27 02:24:54 -07:00
2011-05-26 19:45:05 +02:00
2011-05-25 09:14:07 -07:00
2011-05-26 12:13:57 -07:00
2011-05-26 19:45:54 +02:00
2011-05-26 13:19:00 -07:00
2011-05-26 19:45:46 +02:00
2011-05-29 13:03:13 +01:00
2011-05-27 10:14:22 -07:00
2011-05-28 08:38:55 +02:00
2011-05-26 17:12:36 -07:00
2011-05-27 19:51:32 -07:00
2011-05-27 20:06:53 -07:00
2011-05-27 20:06:53 -07:00
2011-05-25 00:08:17 +01:00
2011-05-24 12:45:59 +02:00
2011-05-26 13:19:00 -07:00
2011-05-29 11:19:16 -07:00
2011-05-29 11:44:33 -07:00
2011-05-27 10:12:35 -07:00
2011-05-27 10:49:30 +01:00
2011-05-26 17:12:33 -07:00
2011-05-26 09:48:24 +02:00
2011-05-28 23:12:11 -07:00
2011-05-27 01:23:54 -06:00
2011-05-26 13:19:00 -07:00
2011-05-24 13:03:56 -04:00
2011-05-27 19:51:32 -07:00
2011-05-28 12:36:15 -07:00
2011-05-26 17:12:32 -07:00
2011-05-26 17:12:38 -07:00
2011-05-26 19:45:06 +02:00
2011-05-26 10:50:56 -07:00
2011-05-28 12:35:15 -07:00