2013.08.29. 8:44 keltezéssel, Gabor Juhos írta: > Modify the probe routine to get the port line number > from device tree if the 'of_node' is populated in the > platform device. The driver can be built as module, > thus add an OF specific module device table as well > to support module auto loading. Erm, the last statement is not true. I forgot to send the patch which makes it possible to build the driver as a module. I did that a few minutes ago. > > This makes it possible to use the driver for AR9330 > UART devices specified in device tree. > > Cc: devicetree@xxxxxxxxxxxxxxx > Signed-off-by: Gabor Juhos <juhosg@xxxxxxxxxxx> > --- > The patch is agains the 'tty-next' branch of the > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tree > --- > .../bindings/tty/serial/qca,ar9330-uart.txt | 34 ++++++++++++++++++++ > drivers/tty/serial/ar933x_uart.c | 28 ++++++++++++++-- > 2 files changed, 59 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/tty/serial/qca,ar9330-uart.txt Additionally, according to the recent thread [1] on the linux-serial list the binding doc should go into bindings/serial. Please drop this patch. I will send an updated version. -Gabor 1. http://marc.info/?l=linux-serial&m=137771717313040&w=2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html