drivers/tty/serial: don't use devm_pinctrl_get_select_default() in probe
Since commit ab78029
(drivers/pinctrl: grab default handles from device core),
we can rely on device core for setting the default pins. Compile tested only.
Acked-by: Linus Walleij <linus.walleij@linaro.org> (personally at LCE13)
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
f3c909b429
commit
e84f54fc58
@@ -40,7 +40,6 @@
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
#include <linux/platform_data/serial-omap.h>
|
||||
|
||||
#define OMAP_MAX_HSUART_PORTS 6
|
||||
@@ -160,7 +159,6 @@ struct uart_omap_port {
|
||||
u32 latency;
|
||||
u32 calc_latency;
|
||||
struct work_struct qos_work;
|
||||
struct pinctrl *pins;
|
||||
bool is_suspending;
|
||||
};
|
||||
|
||||
@@ -1468,13 +1466,6 @@ static int serial_omap_probe(struct platform_device *pdev)
|
||||
goto err_port_line;
|
||||
}
|
||||
|
||||
up->pins = devm_pinctrl_get_select_default(&pdev->dev);
|
||||
if (IS_ERR(up->pins)) {
|
||||
dev_warn(&pdev->dev, "did not get pins for uart%i error: %li\n",
|
||||
up->port.line, PTR_ERR(up->pins));
|
||||
up->pins = NULL;
|
||||
}
|
||||
|
||||
sprintf(up->name, "OMAP UART%d", up->port.line);
|
||||
up->port.mapbase = mem->start;
|
||||
up->port.membase = devm_ioremap(&pdev->dev, mem->start,
|
||||
|
Reference in New Issue
Block a user