OSDN Git Service

USB: mos7840: Fix compilation of usb serial driver
authorTony Zelenoff <antonz@parallels.com>
Tue, 5 Jun 2012 13:58:04 +0000 (17:58 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:34:14 +0000 (11:34 -0700)
commit0812bcc788bd35514632c5ddd58ccc858df1cf97
treec380c1598c2573fb44a6c6c74fccf27f886c38e7
parent482a7756a282b7873dcba9441504a32354317d49
USB: mos7840: Fix compilation of usb serial driver

commit b9c87663eead64c767e72a373ae6f8a94bead459 upstream.

The __devinitconst section can't be referenced
from usb_serial_device structure. Thus removed it as
it done in other mos* device drivers.

Error itself:
WARNING: drivers/usb/serial/mos7840.o(.data+0x8): Section mismatch in reference
from the variable moschip7840_4port_device to the variable
.devinit.rodata:id_table
The variable moschip7840_4port_device references
the variable __devinitconst id_table

[v2] no attach now

Signed-off-by: Tony Zelenoff <antonz@parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c