serial: ifx6x60: Remove superfluous casts when calling request_irq()
There's no need to cast the last parameter of {request,free}_irq() to "void *", as any pointer type is accepted. Remove the superfluous casts to fix this. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9a499db032
commit
cbbcd1f3b8
1 changed files with 6 additions and 7 deletions
|
@ -1175,7 +1175,7 @@ static int ifx_spi_spi_probe(struct spi_device *spi)
|
||||||
ret = request_irq(gpio_to_irq(ifx_dev->gpio.reset_out),
|
ret = request_irq(gpio_to_irq(ifx_dev->gpio.reset_out),
|
||||||
ifx_spi_reset_interrupt,
|
ifx_spi_reset_interrupt,
|
||||||
IRQF_TRIGGER_RISING|IRQF_TRIGGER_FALLING, DRVNAME,
|
IRQF_TRIGGER_RISING|IRQF_TRIGGER_FALLING, DRVNAME,
|
||||||
(void *)ifx_dev);
|
ifx_dev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&spi->dev, "Unable to get irq %x\n",
|
dev_err(&spi->dev, "Unable to get irq %x\n",
|
||||||
gpio_to_irq(ifx_dev->gpio.reset_out));
|
gpio_to_irq(ifx_dev->gpio.reset_out));
|
||||||
|
@ -1185,9 +1185,8 @@ static int ifx_spi_spi_probe(struct spi_device *spi)
|
||||||
ret = ifx_spi_reset(ifx_dev);
|
ret = ifx_spi_reset(ifx_dev);
|
||||||
|
|
||||||
ret = request_irq(gpio_to_irq(ifx_dev->gpio.srdy),
|
ret = request_irq(gpio_to_irq(ifx_dev->gpio.srdy),
|
||||||
ifx_spi_srdy_interrupt,
|
ifx_spi_srdy_interrupt, IRQF_TRIGGER_RISING, DRVNAME,
|
||||||
IRQF_TRIGGER_RISING, DRVNAME,
|
ifx_dev);
|
||||||
(void *)ifx_dev);
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&spi->dev, "Unable to get irq %x",
|
dev_err(&spi->dev, "Unable to get irq %x",
|
||||||
gpio_to_irq(ifx_dev->gpio.srdy));
|
gpio_to_irq(ifx_dev->gpio.srdy));
|
||||||
|
@ -1212,7 +1211,7 @@ static int ifx_spi_spi_probe(struct spi_device *spi)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error_ret7:
|
error_ret7:
|
||||||
free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), (void *)ifx_dev);
|
free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev);
|
||||||
error_ret6:
|
error_ret6:
|
||||||
gpio_free(ifx_dev->gpio.srdy);
|
gpio_free(ifx_dev->gpio.srdy);
|
||||||
error_ret5:
|
error_ret5:
|
||||||
|
@ -1243,8 +1242,8 @@ static int ifx_spi_spi_remove(struct spi_device *spi)
|
||||||
/* stop activity */
|
/* stop activity */
|
||||||
tasklet_kill(&ifx_dev->io_work_tasklet);
|
tasklet_kill(&ifx_dev->io_work_tasklet);
|
||||||
/* free irq */
|
/* free irq */
|
||||||
free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), (void *)ifx_dev);
|
free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev);
|
||||||
free_irq(gpio_to_irq(ifx_dev->gpio.srdy), (void *)ifx_dev);
|
free_irq(gpio_to_irq(ifx_dev->gpio.srdy), ifx_dev);
|
||||||
|
|
||||||
gpio_free(ifx_dev->gpio.srdy);
|
gpio_free(ifx_dev->gpio.srdy);
|
||||||
gpio_free(ifx_dev->gpio.mrdy);
|
gpio_free(ifx_dev->gpio.mrdy);
|
||||||
|
|
Loading…
Reference in a new issue