On Thu, Mar 10, 2022 at 05:16:46PM +0100, Miquel Raynal wrote: > From: Phil Edworthy <phil.edworthy@xxxxxxxxxxx> > > This UART controller can be synthesized without the CPR register. > In that case, let's use the platform information to provide a CPR value. ... > +#include <linux/of_device.h> > + const struct dw8250_platform_data *plat = of_device_get_match_data(up->port.dev); No. Please use device property APIs. -- With Best Regards, Andy Shevchenko