On Sun, Mar 29, 2020 at 1:37 PM saravanan sekar <sravanhome@xxxxxxxxx> wrote: > On 28/03/20 3:42 pm, Jonathan Cameron wrote: > > On Mon, 23 Mar 2020 01:32:34 +0200 > > Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote: > >> On Mon, Mar 23, 2020 at 12:47 AM Saravanan Sekar <sravanhome@xxxxxxxxx> wrote: ... > >>> +#include <linux/of_device.h> > >> Don't see users of it. > Forgot to reply, its needed since I used struct of_device > "error: field name not in record or union initializer > { .compatible = "mps,mp2629_charger"}," Yes, and my comment still stays. The error you get due to lack of proper header, i.e. mod_devicetable.h. -- With Best Regards, Andy Shevchenko