aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/xillybus/xillybus_core.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-08-27 19:17:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-14 11:12:56 +0200
commitff8d123f0b0ee774089f70d8e266ecd1371e84e2 (patch)
tree3ceee5f2148cc81c93641a8597f6473741c64fbd /drivers/char/xillybus/xillybus_core.c
parentchar: xillybus: Remove usage of remaining deprecated pci_ API (diff)
downloadlinux-dev-ff8d123f0b0ee774089f70d8e266ecd1371e84e2.tar.xz
linux-dev-ff8d123f0b0ee774089f70d8e266ecd1371e84e2.zip
char: xillybus: Simplify 'xillybus_init_endpoint()'
Ths first argument of 'xillybus_init_endpoint()' is now useless. Remove it. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/ba687c1eff5dc8f21422323f57164d06f25d4169.1630083668.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/xillybus/xillybus_core.c')
-rw-r--r--drivers/char/xillybus/xillybus_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c
index 0ced9ec6977f..02f30140c2d5 100644
--- a/drivers/char/xillybus/xillybus_core.c
+++ b/drivers/char/xillybus/xillybus_core.c
@@ -1772,8 +1772,7 @@ static const struct file_operations xillybus_fops = {
.poll = xillybus_poll,
};
-struct xilly_endpoint *xillybus_init_endpoint(struct pci_dev *pdev,
- struct device *dev,
+struct xilly_endpoint *xillybus_init_endpoint(struct device *dev,
struct xilly_endpoint_hardware
*ephw)
{
@@ -1783,7 +1782,6 @@ struct xilly_endpoint *xillybus_init_endpoint(struct pci_dev *pdev,
if (!endpoint)
return NULL;
- (void)pdev; // silence a compiler warning, will be removed
endpoint->dev = dev;
endpoint->ephw = ephw;
endpoint->msg_counter = 0x0b;