Hello Cedric, On Thu, Dec 15, 2016 at 04:26:25PM +0100, M'boumba Cedric Madianga wrote: > >> +static struct platform_driver stm32f4_i2c_driver = { > >> + .driver = { > >> + .name = "stm32f4-i2c", > >> + .of_match_table = stm32f4_i2c_match, > > > > Is this needed? > Without of_match_table, I could not match an I2C device instance from > DT with this driver. > So maybe, there is a misunderstanding. > Could you please clarify your question ? I thought (but I could be wrong) that if the driver is called "stm32f4-i2c", it is used to match "st,stm32f4-i2c" even without .of_match_table. If this doesn't work, please disregard my question. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html