st-asc.c (a976c2951d8f376112361830aa7762beff83a205) | st-asc.c (2b01bfaeb41e1563322448d9b392ac924cbf22ef) |
---|---|
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 --- 744 unchanged lines hidden (view full) --- 753 ascport->port.uartclk = clk_get_rate(ascport->clk); 754 WARN_ON(ascport->port.uartclk == 0); 755 clk_disable_unprepare(ascport->clk); 756 757 ascport->pinctrl = devm_pinctrl_get(&pdev->dev); 758 if (IS_ERR(ascport->pinctrl)) { 759 ret = PTR_ERR(ascport->pinctrl); 760 dev_err(&pdev->dev, "Failed to get Pinctrl: %d\n", ret); | 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 --- 744 unchanged lines hidden (view full) --- 753 ascport->port.uartclk = clk_get_rate(ascport->clk); 754 WARN_ON(ascport->port.uartclk == 0); 755 clk_disable_unprepare(ascport->clk); 756 757 ascport->pinctrl = devm_pinctrl_get(&pdev->dev); 758 if (IS_ERR(ascport->pinctrl)) { 759 ret = PTR_ERR(ascport->pinctrl); 760 dev_err(&pdev->dev, "Failed to get Pinctrl: %d\n", ret); |
761 return ret; |
|
761 } 762 763 ascport->states[DEFAULT] = 764 pinctrl_lookup_state(ascport->pinctrl, "default"); 765 if (IS_ERR(ascport->states[DEFAULT])) { 766 ret = PTR_ERR(ascport->states[DEFAULT]); 767 dev_err(&pdev->dev, 768 "Failed to look up Pinctrl state 'default': %d\n", ret); --- 247 unchanged lines hidden --- | 762 } 763 764 ascport->states[DEFAULT] = 765 pinctrl_lookup_state(ascport->pinctrl, "default"); 766 if (IS_ERR(ascport->states[DEFAULT])) { 767 ret = PTR_ERR(ascport->states[DEFAULT]); 768 dev_err(&pdev->dev, 769 "Failed to look up Pinctrl state 'default': %d\n", ret); --- 247 unchanged lines hidden --- |