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)
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>

No differences found