Skip to content

Commit

Permalink
usb: common: otg-fsm: add license to usb-otg-fsm
Browse files Browse the repository at this point in the history
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 will hang. Tested with a udoo quad board.

Cc: <stable@vger.kernel.org> #v4.1+
Signed-off-by: Oscar <oscar@naiandei.net>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
  • Loading branch information
Oscar authored and Peter Chen committed Jun 14, 2016
1 parent e4600d5 commit ea1d39a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/common/usb-otg-fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -450,3 +451,4 @@ int otg_statemachine(struct otg_fsm *fsm)
return fsm->state_changed;
}
EXPORT_SYMBOL_GPL(otg_statemachine);
MODULE_LICENSE("GPL");

0 comments on commit ea1d39a

Please sign in to comment.