public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* usb: common: otg-fsm: add license to usb-otg-fsm
@ 2016-06-12 11:06 Oscar
  2016-06-13  7:52 ` Peter Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Oscar @ 2016-06-12 11:06 UTC (permalink / raw)
  To: Peter.Chen, gregkh, linux-usb, linux-kernel; +Cc: stable

usb: common: otg-fsm: add license to usb-otg-fsm.

Fix warning about tainted kernel because usb-otg-fsm has no license.
WARNING: with this patch usb-otg-fsm module can be loaded
but then the kernel hangs. Tested with a udoo quad board.

Signed-off-by: Oscar Curero <oscar@naiandei.net>
---

--- a/drivers/usb/common/usb-otg-fsm.c.orig     2016-06-12 
12:02:09.269814317 +0200
+++ b/drivers/usb/common/usb-otg-fsm.c  2016-06-12 12:01:54.473000410 
+0200
@@ -21,6 +21,7 @@
   * 675 Mass Ave, Cambridge, MA 02139, USA.
   */

+#include <linux/module.h>
  #include <linux/kernel.h>
  #include <linux/types.h>
  #include <linux/mutex.h>
@@ -452,3 +453,4 @@ int otg_statemachine(struct otg_fsm *fsm
         return state_changed;
  }
  EXPORT_SYMBOL_GPL(otg_statemachine);
+MODULE_LICENSE("GPL");

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-13  7:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-12 11:06 usb: common: otg-fsm: add license to usb-otg-fsm Oscar
2016-06-13  7:52 ` Peter Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox