[PATCH 2/2] of: Add function for generating a DT modalias with a newline

Greg Kroah-Hartman gregkh at linuxfoundation.org
Thu Jan 19 21:35:33 AEDT 2017


On Mon, Jan 16, 2017 at 02:41:22PM -0600, Rob Herring wrote:
> The modalias sysfs attr is lacking a newline for DT aliases on platform
> devices. The macio and ibmebus correctly add the newline, but open code it.
> Introduce a new function, of_device_modalias(), that fills the buffer with
> the modalias including the newline and update users of the old
> of_device_get_modalias function.
> 
> Signed-off-by: Rob Herring <robh at kernel.org>
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Cc: Paul Mackerras <paulus at samba.org>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: Frank Rowand <frowand.list at gmail.com>
> Cc: linuxppc-dev at lists.ozlabs.org


Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>


More information about the Linuxppc-dev mailing list