From: Johan Hovold Date: Thu, 16 Mar 2017 16:13:51 +0000 (+0100) Subject: USB: serial: visor: drop redundant calc_num_ports callback X-Git-Tag: v4.14-rc1~993^2~9^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5b669f4c60e0bbb55b36e71ac4e273ab95160f3;p=platform%2Fkernel%2Flinux-rpi.git USB: serial: visor: drop redundant calc_num_ports callback Drop the redundant calc_num_ports callback from the clie_5 type, for which the callback always returns zero and hence falls back to the type num_ports value (2). Signed-off-by: Johan Hovold --- diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 3f943f8..8b4429e 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c @@ -197,7 +197,6 @@ static struct usb_serial_driver clie_5_device = { .unthrottle = usb_serial_generic_unthrottle, .attach = clie_5_attach, .probe = visor_probe, - .calc_num_ports = visor_calc_num_ports, .read_int_callback = visor_read_int_callback, };