From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH] i2c/imx: don't add probe function to the driver struct Date: Mon, 1 Feb 2010 15:57:25 +0100 Message-ID: <1265036245-32235-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <20100130204425.GA16345@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20100130204425.GA16345-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Ben Dooks , Wolfram Sang , Richard Zhao , Darius Augulis , Sascha Hauer , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Greg KH , OGAWA Hirofumi , Greg KH , Sam Ravnborg , Rusty Russell , Sean MacLennan , Andrew Morton List-Id: linux-i2c@vger.kernel.org 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=C3=B6nig --- Hello, this is a new section mismatch found by modpost after my patches. Best regards Uwe drivers/i2c/busses/i2c-imx.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.= c index 75bf820..32375bd 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -627,7 +627,6 @@ static int __exit i2c_imx_remove(struct platform_de= vice *pdev) } =20 static struct platform_driver i2c_imx_driver =3D { - .probe =3D i2c_imx_probe, .remove =3D __exit_p(i2c_imx_remove), .driver =3D { .name =3D DRIVER_NAME, --=20 1.6.6