Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100915
b: refs/heads/master
c: 720046d
h: refs/heads/master
i:
  100913: a00f7e6
  100911: 2d51399
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jun 2, 2008
1 parent 8d53194 commit 6393d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 1a7e612fa5ea0311232bd5418a40ec7280557789
refs/heads/master: 720046de27ec2a96d4497dbca8ee98657efa059c
9 changes: 6 additions & 3 deletions trunk/arch/arm/mach-pxa/lpd270.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,12 @@ static struct sys_device lpd270_irq_device = {

static int __init lpd270_irq_device_init(void)
{
int ret = sysdev_class_register(&lpd270_irq_sysclass);
if (ret == 0)
ret = sysdev_register(&lpd270_irq_device);
int ret = -ENODEV;
if (machine_is_logicpd_pxa270()) {
ret = sysdev_class_register(&lpd270_irq_sysclass);
if (ret == 0)
ret = sysdev_register(&lpd270_irq_device);
}
return ret;
}

Expand Down

0 comments on commit 6393d94

Please sign in to comment.