st-asc.c (c4b058560762ec7ffe159b668fc47a8b7e271949) st-asc.c (a4f2dc9efc00a56ca30ce340a1405293ec9488a4)
1/*
2 * st-asc.c: ST Asynchronous serial controller (ASC) driver
3 *
4 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 710 unchanged lines hidden (view full) ---

719
720 asc_ports[id].hw_flow_control = of_property_read_bool(np,
721 "st,hw-flow-control");
722 asc_ports[id].force_m1 = of_property_read_bool(np, "st,force_m1");
723 asc_ports[id].port.line = id;
724 return &asc_ports[id];
725}
726
1/*
2 * st-asc.c: ST Asynchronous serial controller (ASC) driver
3 *
4 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 710 unchanged lines hidden (view full) ---

719
720 asc_ports[id].hw_flow_control = of_property_read_bool(np,
721 "st,hw-flow-control");
722 asc_ports[id].force_m1 = of_property_read_bool(np, "st,force_m1");
723 asc_ports[id].port.line = id;
724 return &asc_ports[id];
725}
726
727#ifdef CONFIG_OF
727static struct of_device_id asc_match[] = {
728 { .compatible = "st,asc", },
729 {},
730};
731
732MODULE_DEVICE_TABLE(of, asc_match);
728static struct of_device_id asc_match[] = {
729 { .compatible = "st,asc", },
730 {},
731};
732
733MODULE_DEVICE_TABLE(of, asc_match);
734#endif
733
734static int asc_serial_probe(struct platform_device *pdev)
735{
736 int ret;
737 struct asc_port *ascport;
738
739 ascport = asc_of_get_asc_port(pdev);
740 if (!ascport)

--- 197 unchanged lines hidden ---
735
736static int asc_serial_probe(struct platform_device *pdev)
737{
738 int ret;
739 struct asc_port *ascport;
740
741 ascport = asc_of_get_asc_port(pdev);
742 if (!ascport)

--- 197 unchanged lines hidden ---