Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77549
b: refs/heads/master
c: 16f159b
h: refs/heads/master
i:
  77547: 3a0376a
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 26, 2008
1 parent 4c7ca9c commit 139b380
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 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: 2f1a74e5a2de0459139b85af95e901448726c375
refs/heads/master: 16f159b1fc4f227a25cc4792e3804353e4777ebe
10 changes: 7 additions & 3 deletions trunk/arch/arm/mach-pxa/lubbock.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,13 @@ static struct sys_device lubbock_irq_device = {

static int __init lubbock_irq_device_init(void)
{
int ret = sysdev_class_register(&lubbock_irq_sysclass);
if (ret == 0)
ret = sysdev_register(&lubbock_irq_device);
int ret = -ENODEV;

if (machine_is_lubbock()) {
ret = sysdev_class_register(&lubbock_irq_sysclass);
if (ret == 0)
ret = sysdev_register(&lubbock_irq_device);
}
return ret;
}

Expand Down
10 changes: 7 additions & 3 deletions trunk/arch/arm/mach-pxa/mainstone.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ static struct sys_device mainstone_irq_device = {

static int __init mainstone_irq_device_init(void)
{
int ret = sysdev_class_register(&mainstone_irq_sysclass);
if (ret == 0)
ret = sysdev_register(&mainstone_irq_device);
int ret = -ENODEV;

if (machine_is_mainstone()) {
ret = sysdev_class_register(&mainstone_irq_sysclass);
if (ret == 0)
ret = sysdev_register(&mainstone_irq_device);
}
return ret;
}

Expand Down

0 comments on commit 139b380

Please sign in to comment.