]> git.baikalelectronics.ru Git - kernel.git/commit
sh: dma: fix request_irq usage
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Aug 2012 01:54:05 +0000 (21:54 -0400)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 9 Aug 2012 04:11:11 +0000 (13:11 +0900)
commit2aab1a577399ef30d508e3c758837c7d203ff27c
treef3d1cbadb92bb9bb04532e45b88e2c90e23c100f
parentb60780f6d6ebe83224eb8092223a30273cb61f0a
sh: dma: fix request_irq usage

When calling request_irq with IRQF_SHARED, the dev cookie must be set
(i.e. non-NULL), otherwise the code rejects it immediately with -EINVAL.
So restore the logic here where we'd pass a pointer to the name as a
dummy unique val.

Otherwise, booting up on my LANDISK system would fail with:
DMAC Address Error0 request_irq fail

This was introduced in commit ff52e7c7343bd38be0220d7ff417418ec04ae536.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/dma/dma-sh.c