Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180879
b: refs/heads/master
c: e9a172f
h: refs/heads/master
i:
  180877: dd9163c
  180875: 029cdbd
  180871: 2e88073
  180863: c604f44
v: v3
  • Loading branch information
Uwe Kleine-König authored and Grant Likely committed Jan 20, 2010
1 parent f1fb219 commit 6f066f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34b8c66173666025020e3a6f8d4a5c238b19cde5
refs/heads/master: e9a172f074ba85de144e63b0786c7c5c5ba93c3a
4 changes: 2 additions & 2 deletions trunk/drivers/spi/spi_mpc8xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ static struct of_platform_driver of_mpc8xxx_spi_driver = {
static int __devinit plat_mpc8xxx_spi_probe(struct platform_device *pdev)
{
struct resource *mem;
unsigned int irq;
int irq;
struct spi_master *master;

if (!pdev->dev.platform_data)
Expand All @@ -1339,7 +1339,7 @@ static int __devinit plat_mpc8xxx_spi_probe(struct platform_device *pdev)
return -EINVAL;

irq = platform_get_irq(pdev, 0);
if (!irq)
if (irq <= 0)
return -EINVAL;

master = mpc8xxx_spi_probe(&pdev->dev, mem, irq);
Expand Down

0 comments on commit 6f066f5

Please sign in to comment.