dma: shdma: don't register the global die notifier multiple times
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 6 Jan 2011 17:04:50 +0000 (17:04 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 7 Jan 2011 02:03:26 +0000 (11:03 +0900)
commit661382fe190475c17d0b3a6b5f0350b4f82f5939
tree3609fdecc5b29a6875cbe92cca747096819db7b4
parent3c0cb7c31c206aaedb967e44b98442bbeb17a6c4
dma: shdma: don't register the global die notifier multiple times

A recent patch has added a die notifier to the shdma driver, however,
it registers a static die-notifier object in the probe routine, i.e.,
for each device instance. This is wrong and leads to a system lockup.
This patch moves the die notifier registration to module init and
exit routines respectively.

Reported-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/dma/shdma.c