powerpc/fsl_msi: drop unneeded cast to non-const pointer
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Jul 2012 16:24:26 +0000 (16:24 +0000)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 11 Sep 2012 06:57:28 +0000 (08:57 +0200)
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>
arch/powerpc/sysdev/fsl_msi.c

index a40acd68444e0782600d0ef477dcf8f65f9cfe93..51ffafae561ea5a4a12da1f401c76da164811fff 100644 (file)
@@ -502,15 +502,15 @@ static const struct fsl_msi_feature vmpic_msi_feature = {
 static const struct of_device_id fsl_of_msi_ids[] = {
        {
                .compatible = "fsl,mpic-msi",
-               .data = (void *)&mpic_msi_feature,
+               .data = &mpic_msi_feature,
        },
        {
                .compatible = "fsl,ipic-msi",
-               .data = (void *)&ipic_msi_feature,
+               .data = &ipic_msi_feature,
        },
        {
                .compatible = "fsl,vmpic-msi",
-               .data = (void *)&vmpic_msi_feature,
+               .data = &vmpic_msi_feature,
        },
        {}
 };