From: Ian Abbott Date: Thu, 31 Jul 2014 13:47:48 +0000 (+0100) Subject: staging: comedi: amplc_pci224: no need for '&function' X-Git-Tag: v3.18-rc1~130^2~1383 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=74f6084336fa651e6e063f50c2cbaa62c3e831be;p=karo-tx-linux.git staging: comedi: amplc_pci224: no need for '&function' Remove the "address-of" operator when the operand is a function. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c index 68fc407b1559..b8b86abf52a2 100644 --- a/drivers/staging/comedi/drivers/amplc_pci224.c +++ b/drivers/staging/comedi/drivers/amplc_pci224.c @@ -1173,15 +1173,14 @@ static int pci224_attach_common(struct comedi_device *dev, s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_CMD_WRITE; s->n_chan = thisboard->ao_chans; s->maxdata = (1 << thisboard->ao_bits) - 1; - s->insn_write = &pci224_ao_insn_write; - s->insn_read = &pci224_ao_insn_read; + s->insn_write = pci224_ao_insn_write; + s->insn_read = pci224_ao_insn_read; s->len_chanlist = s->n_chan; - dev->write_subdev = s; - s->do_cmd = &pci224_ao_cmd; - s->do_cmdtest = &pci224_ao_cmdtest; - s->cancel = &pci224_ao_cancel; - s->munge = &pci224_ao_munge; + s->do_cmd = pci224_ao_cmd; + s->do_cmdtest = pci224_ao_cmdtest; + s->cancel = pci224_ao_cancel; + s->munge = pci224_ao_munge; /* Sort out channel range options. */ if (thisboard->model == pci234_model) {