On Sun, 11 Sep 2022, Lukas Wunner wrote: > The serial-omap driver requires an rts-gpio for RS-485 to work. > Historically it has allowed enabling RS-485 even if no rts-gpio was > specified in the device tree. > > That doesn't make any sense, so disable RS-485 on probe if rts-gpio is > missing and disallow user space from enabling it. > > Three NULL pointer checks for up->rts_gpiod can be dropped as a result, > simplifying the driver slightly. > > Signed-off-by: Lukas Wunner <lukas@xxxxxxxxx> > Cc: Linus Walleij <linus.walleij@xxxxxxxxxx> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> -- i.