Fixing compilaton error.
Incrementing usage counter only on successful execution of skel_open.
Removing redundant locking
Some last changes in function skel_open and finally commit
52a7499 Revert "USB: usb-skeleton.c: fix open/disconnect race"
introduced a bug in function skel_open, which this patch fixes.
Changes since v2:
- refactoring
- Removing redundant mutex synchronization.
Changes since v1:
- Fixed accordingly feedback of Oliver Neukum [email protected]: also need to drop the lock.
Signed-off-by: Constantine Shulyupin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Remove usage of CONFIG_USB_MUSB_OTG, CONFIG_USB_MUSB_PERIPHERAL
and CONFIG_USB_MUSB_HOST in arch/arm/mach-davinci/usb.c since these
are not used anymore and set mode configuration by default to
MUSB_OTG.
Signed-off-by: Constantine Shulyupin <[email protected]>
[[email protected]: Tested on DM6446-EVM]
Acked-by: Manjunathappa, Prakash <[email protected]>
Acked-by: Felipe Balbi <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
Previous names of init and exit functions "init" and "cleanup" are
unconventional and are not friendly for source navigation with tags.
New names "ccg_init" and "ccg_exit" are conveninal and source navigation
friendly.
Signed-off-by: Constantine Shulyupin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>