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

powerpc/fsl_msi: drop unneeded cast to non-const pointer

This cast is unneeded since *of_device_id.data became const.

[ukl: split Arnd's patch by driver and add changelog]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

authored by

Arnd Bergmann and committed by
Uwe Kleine-König
a99cc82b c06e6769

+3 -3
+3 -3
arch/powerpc/sysdev/fsl_msi.c
··· 502 502 static const struct of_device_id fsl_of_msi_ids[] = { 503 503 { 504 504 .compatible = "fsl,mpic-msi", 505 - .data = (void *)&mpic_msi_feature, 505 + .data = &mpic_msi_feature, 506 506 }, 507 507 { 508 508 .compatible = "fsl,ipic-msi", 509 - .data = (void *)&ipic_msi_feature, 509 + .data = &ipic_msi_feature, 510 510 }, 511 511 { 512 512 .compatible = "fsl,vmpic-msi", 513 - .data = (void *)&vmpic_msi_feature, 513 + .data = &vmpic_msi_feature, 514 514 }, 515 515 {} 516 516 };