[RFC 0/2] serial: ns16550: small dt support improvements

Antony Pavlov antonynpavlov at gmail.com
Thu Jul 25 04:28:51 EDT 2013


On Wed, 24 Jul 2013 18:54:21 +0200
Sascha Hauer <s.hauer at pengutronix.de> wrote:

> On Tue, Jul 23, 2013 at 07:28:00PM +0400, Antony Pavlov wrote:
> > [RFC 1/2] serial: ns16550: get clock-frequency from dt
> > [RFC 2/2] serial: ns16550: fill cdev just-in-time
> 
> Applied, thanks.
> 
> I assume the second one is only cosmetic, right?

Yes, it's mostly cosmetic: the main goal of the second patch
is making code more "easy-to-understand".

As a bonus you get a tiny insignificant optimisation: if there is any error
during probe then there is no need in cdev and cdev can
be keeped unitialized (tut IMHO a smart compiler can make itself
a reposition like this :).

-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list