Skip to content

Commit 97315e7

Browse files
Dan Carpentermiquelraynal
authored andcommitted
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: e23abf4 ("mtd: OneNAND: S5PC110: Implement DMA interrupt method") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent a1d3bc6 commit 97315e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/onenand/onenand_samsung.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ static int s3c_onenand_probe(struct platform_device *pdev)
906906
err = devm_request_irq(&pdev->dev, r->start,
907907
s5pc110_onenand_irq,
908908
IRQF_SHARED, "onenand",
909-
&onenand);
909+
onenand);
910910
if (err) {
911911
dev_err(&pdev->dev, "failed to get irq\n");
912912
return err;

0 commit comments

Comments
 (0)