Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195334
b: refs/heads/master
c: 7f0ae3a
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed May 20, 2010
1 parent a6042b6 commit d9ca0c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a1e7d5d54c1c046c1fe47dffd119b45087c6de6
refs/heads/master: 7f0ae3a8eeb7f231dc99cee7c871ba64e07ebefe
9 changes: 9 additions & 0 deletions trunk/drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/sysrq.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
Expand Down Expand Up @@ -558,6 +559,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty)
}
}

#ifdef CONFIG_MAGIC_SYSRQ
int usb_serial_handle_sysrq_char(struct tty_struct *tty,
struct usb_serial_port *port, unsigned int ch)
{
Expand All @@ -571,6 +573,13 @@ int usb_serial_handle_sysrq_char(struct tty_struct *tty,
}
return 0;
}
#else
int usb_serial_handle_sysrq_char(struct tty_struct *tty,
struct usb_serial_port *port, unsigned int ch)
{
return 0;
}
#endif
EXPORT_SYMBOL_GPL(usb_serial_handle_sysrq_char);

int usb_serial_handle_break(struct usb_serial_port *port)
Expand Down

0 comments on commit d9ca0c3

Please sign in to comment.