On Wed, Mar 24, 2021 at 04:26:54PM +0800, Yicong Yang wrote: > On 2021/3/23 0:35, Andy Shevchenko wrote: > > On Mon, Mar 22, 2021 at 07:10:11PM +0800, Yicong Yang wrote: > >> Some I2C controller drivers will only unregister the I2C > >> adapter in their .remove() callback, which can be done > >> by simply using a managed variant to add the I2C adapter. > >> > >> So add the managed functions for adding the I2C adapter. > > > > ... > > > >> +static void devm_i2c_del_adapter(struct device *dev, void *ptr); > > > > Can we instead of forward declaration simply move below to be after > > devm_i2c_del_adapter()? > > i just want to put the devm variant near i2c_add_adapter, i'll address > this if it's unnecessary. Please, address. -- With Best Regards, Andy Shevchenko