Skip to content

Commit

Permalink
can: sja1000: fix compilation on x86
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Kleine-Budde authored and David S. Miller committed Dec 16, 2012
1 parent e133b53 commit 50077cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/sja1000/sja1000_of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int sja1000_ofp_probe(struct platform_device *ofdev)
}

irq = irq_of_parse_and_map(np, 0);
if (irq == NO_IRQ) {
if (irq == 0) {
dev_err(&ofdev->dev, "no irq found\n");
err = -ENODEV;
goto exit_unmap_mem;
Expand Down

0 comments on commit 50077cd

Please sign in to comment.