mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
i2c/imx: don't add probe function to the driver struct
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 <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
This commit is contained in:
parent
3f9900f17c
commit
96eb7164e3
1 changed files with 0 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue