Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: onenand: Pass correct pointer to IRQ handler

This was supposed to pass "onenand" instead of "&onenand" with the
ampersand. Passing a random stack address which will be gone when the
function ends makes no sense. However the good thing is that the pointer
is never used, so this doesn't cause a problem at run time.

Fixes: e23abf4b7743 ("mtd: OneNAND: S5PC110: Implement DMA interrupt method")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Dan Carpenter and committed by
Miquel Raynal
97315e7c a1d3bc60

+1 -1
+1 -1
drivers/mtd/nand/onenand/onenand_samsung.c
··· 906 906 err = devm_request_irq(&pdev->dev, r->start, 907 907 s5pc110_onenand_irq, 908 908 IRQF_SHARED, "onenand", 909 - &onenand); 909 + onenand); 910 910 if (err) { 911 911 dev_err(&pdev->dev, "failed to get irq\n"); 912 912 return err;