i2c/imx: don't add probe function to the driver struct
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 1 Feb 2010 14:57:25 +0000 (15:57 +0100)
committerBen Dooks <ben-linux@fluff.org>
Sun, 7 Mar 2010 22:02:16 +0000 (22:02 +0000)
Having a pointer to the probe function is unnecessary when using
platform_driver_probe and yields a section mismatch warning after
removing the white list entry "*driver" for
{ .data$, .data.rel$ } -> { .init.* } mismatches in modpost.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-imx.c

index 75bf820e7ccb912c4efb027e6f2a638ea9ba7021..32375bddae7df6aa4fca67d17a045c00b3c9f9de 100644 (file)
@@ -627,7 +627,6 @@ static int __exit i2c_imx_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver i2c_imx_driver = {
-       .probe          = i2c_imx_probe,
        .remove         = __exit_p(i2c_imx_remove),
        .driver = {
                .name   = DRIVER_NAME,