mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
lots of ifxmips cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11607 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -303,7 +303,7 @@ reset_button_poll(unsigned long unused)
|
||||
{
|
||||
struct event_t *event;
|
||||
|
||||
rst_button_timer.expires = jiffies + HZ;
|
||||
rst_button_timer.expires = jiffies + (HZ / 4);
|
||||
add_timer(&rst_button_timer);
|
||||
|
||||
if (pressed != ifxmips_port_get_input(IFXMIPS_RST_PORT, IFXMIPS_RST_PIN))
|
||||
@@ -312,7 +312,6 @@ reset_button_poll(unsigned long unused)
|
||||
pressed = 0;
|
||||
else
|
||||
pressed = 1;
|
||||
printk("reset button was %s\n", (pressed ? "pressed" : "released"));
|
||||
event = (struct event_t *) kzalloc(sizeof(struct event_t), GFP_ATOMIC);
|
||||
if (!event)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user