Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Greg Kroah-Hartman
cbbcd1f3 9a499db0

+6 -7
+6 -7
drivers/tty/serial/ifx6x60.c
··· 1175 1175 ret = request_irq(gpio_to_irq(ifx_dev->gpio.reset_out), 1176 1176 ifx_spi_reset_interrupt, 1177 1177 IRQF_TRIGGER_RISING|IRQF_TRIGGER_FALLING, DRVNAME, 1178 - (void *)ifx_dev); 1178 + ifx_dev); 1179 1179 if (ret) { 1180 1180 dev_err(&spi->dev, "Unable to get irq %x\n", 1181 1181 gpio_to_irq(ifx_dev->gpio.reset_out)); ··· 1185 1185 ret = ifx_spi_reset(ifx_dev); 1186 1186 1187 1187 ret = request_irq(gpio_to_irq(ifx_dev->gpio.srdy), 1188 - ifx_spi_srdy_interrupt, 1189 - IRQF_TRIGGER_RISING, DRVNAME, 1190 - (void *)ifx_dev); 1188 + ifx_spi_srdy_interrupt, IRQF_TRIGGER_RISING, DRVNAME, 1189 + ifx_dev); 1191 1190 if (ret) { 1192 1191 dev_err(&spi->dev, "Unable to get irq %x", 1193 1192 gpio_to_irq(ifx_dev->gpio.srdy)); ··· 1211 1212 return 0; 1212 1213 1213 1214 error_ret7: 1214 - free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), (void *)ifx_dev); 1215 + free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev); 1215 1216 error_ret6: 1216 1217 gpio_free(ifx_dev->gpio.srdy); 1217 1218 error_ret5: ··· 1242 1243 /* stop activity */ 1243 1244 tasklet_kill(&ifx_dev->io_work_tasklet); 1244 1245 /* free irq */ 1245 - free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), (void *)ifx_dev); 1246 - free_irq(gpio_to_irq(ifx_dev->gpio.srdy), (void *)ifx_dev); 1246 + free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev); 1247 + free_irq(gpio_to_irq(ifx_dev->gpio.srdy), ifx_dev); 1247 1248 1248 1249 gpio_free(ifx_dev->gpio.srdy); 1249 1250 gpio_free(ifx_dev->gpio.mrdy);