projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0dcf24
)
USB: serial: visor: drop redundant calc_num_ports callback
author
Johan Hovold
<johan@kernel.org>
Thu, 16 Mar 2017 16:13:51 +0000
(17:13 +0100)
committer
Johan Hovold
<johan@kernel.org>
Tue, 28 Mar 2017 09:14:11 +0000
(11:14 +0200)
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 <johan@kernel.org>
drivers/usb/serial/visor.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/visor.c
b/drivers/usb/serial/visor.c
index 3f943f877ac2ec3143b2424093d52cb35bbdbcee..8b4429e4a73c76c9e8d2cf0f1b4bb47323ed60ac 100644
(file)
--- 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,
};