Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156407
b: refs/heads/master
c: a1b021d
h: refs/heads/master
i:
  156405: f6d5a34
  156403: 0374982
  156399: 34b3e8c
v: v3
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Aug 3, 2009
1 parent 3b8df41 commit 0595ae6
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 619e22632ea3110323b1851a7fecb52bf8505fd2
refs/heads/master: a1b021d3992d9be03b0abec1a7ed78e713b94206
14 changes: 12 additions & 2 deletions trunk/arch/mips/alchemy/mtx-1/platform.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MTX-1 platform devices registration
*
* Copyright (C) 2007, Florian Fainelli <florian@openwrt.org>
* Copyright (C) 2007-2009, Florian Fainelli <florian@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -142,7 +142,17 @@ static struct __initdata platform_device * mtx1_devs[] = {

static int __init mtx1_register_devices(void)
{
gpio_direction_input(207);
int rc;

rc = gpio_request(mtx1_gpio_button[0].gpio,
mtx1_gpio_button[0].desc);
if (rc < 0) {
printk(KERN_INFO "mtx1: failed to request %d\n",
mtx1_gpio_button[0].gpio);
goto out;
}
gpio_direction_input(mtx1_gpio_button[0].gpio);
out:
return platform_add_devices(mtx1_devs, ARRAY_SIZE(mtx1_devs));
}

Expand Down

0 comments on commit 0595ae6

Please sign in to comment.