USB: serial: opticon: hook up suspend/resume callbacks
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 21:35:21 +0000 (14:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 21:35:21 +0000 (14:35 -0700)
commitd530296f63c039a5683db665acc5ecdb3b593eb2
tree2656774d719545d9c0549dab8b13573125287ae7
parent08dfa5c5323c81a960d77c3752bd6df235094ac3
USB: serial: opticon: hook up suspend/resume callbacks

With a previous patch, the usb_driver suspend/resume callbacks got
overridden and were never called if a usb_serial driver defined them.
This patch fixes the opticon driver to move the suspend/resume callbacks
into the usb_serial_driver structure where they will be properly called.

It then removes the unused usb_driver structure.

Cc: Johan Hovold <jhovold@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Julia Lawall <julia@diku.dk>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/opticon.c