Skip to content

Commit 50077cd

Browse files
marckleinebuddedavem330
authored andcommitted
can: sja1000: fix compilation on x86
Since commit: 04df251 can: sja1000: Make sja1000_of_platform selectable and compilable on SPARC the driver can be activated on non powerpc platform like x86 or sparc. Without this patch the driver fails to compile on platform that don't define NO_IRQ, like x86. Reported-by: Randy Dunlap <rdunlap@infradead.org> Cc: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e133b53 commit 50077cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/can/sja1000/sja1000_of_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int sja1000_ofp_probe(struct platform_device *ofdev)
121121
}
122122

123123
irq = irq_of_parse_and_map(np, 0);
124-
if (irq == NO_IRQ) {
124+
if (irq == 0) {
125125
dev_err(&ofdev->dev, "no irq found\n");
126126
err = -ENODEV;
127127
goto exit_unmap_mem;

0 commit comments

Comments
 (0)