linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shc_work@mail.ru (Alexander Shiyan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 19/22] serial: clps711x: Remove board support
Date: Sat,  4 Jun 2016 10:10:11 +0300	[thread overview]
Message-ID: <1465024214-22120-20-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1465024214-22120-1-git-send-email-shc_work@mail.ru>

Since board support for the CLPS711X platform was removed,
remove the board support from the driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/tty/serial/clps711x.c | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/drivers/tty/serial/clps711x.c b/drivers/tty/serial/clps711x.c
index ac13286..b8be687 100644
--- a/drivers/tty/serial/clps711x.c
+++ b/drivers/tty/serial/clps711x.c
@@ -446,12 +446,15 @@ static struct console clps711x_console = {
 static int uart_clps711x_probe(struct platform_device *pdev)
 {
 	struct device_node *np = pdev->dev.of_node;
-	int ret, index = np ? of_alias_get_id(np, "serial") : pdev->id;
 	struct clps711x_port *s;
 	struct resource *res;
 	struct clk *uart_clk;
-	int irq;
+	int irq, ret, index;
 
+	if (!np)
+		return -ENODEV;
+
+	index = of_alias_get_id(np, "serial");
 	if (index < 0 || index >= UART_CLPS711X_NR)
 		return -EINVAL;
 
@@ -477,18 +480,9 @@ static int uart_clps711x_probe(struct platform_device *pdev)
 	if (s->rx_irq < 0)
 		return s->rx_irq;
 
-	if (!np) {
-		char syscon_name[9];
-
-		sprintf(syscon_name, "syscon.%i", index + 1);
-		s->syscon = syscon_regmap_lookup_by_pdevname(syscon_name);
-		if (IS_ERR(s->syscon))
-			return PTR_ERR(s->syscon);
-	} else {
-		s->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
-		if (IS_ERR(s->syscon))
-			return PTR_ERR(s->syscon);
-	}
+	s->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
+	if (IS_ERR(s->syscon))
+		return PTR_ERR(s->syscon);
 
 	s->port.line		= index;
 	s->port.dev		= &pdev->dev;
-- 
2.4.9

  parent reply	other threads:[~2016-06-04  7:10 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04  7:09 [PATCH 00/22] ARM: clps711x: Switch to DT and Multiplatform Alexander Shiyan
2016-06-04  7:09 ` [PATCH 01/22] ARM: clps711x: Reduce static map size Alexander Shiyan
2016-06-04  7:09 ` [PATCH 02/22] clk: clps711x: Changing the compatibility string to match with the smallest supported chip Alexander Shiyan
2016-06-04  7:09 ` [PATCH 03/22] clocksource: " Alexander Shiyan
2016-06-13 12:15   ` Daniel Lezcano
2016-06-04  7:09 ` [PATCH 04/22] irqchip: " Alexander Shiyan
2016-06-04  7:09 ` [PATCH 05/22] serial: " Alexander Shiyan
2016-06-04  7:09 ` [PATCH 06/22] pwm: " Alexander Shiyan
2016-06-04  7:09 ` [PATCH 07/22] gpio: " Alexander Shiyan
2016-06-08  8:44   ` Linus Walleij
2016-06-04  7:10 ` [PATCH 08/22] gpio: syscon: " Alexander Shiyan
2016-06-08  8:48   ` Linus Walleij
2016-06-04  7:10 ` [PATCH 09/22] input: clps711x-keypad: " Alexander Shiyan
2016-06-04  7:10 ` [PATCH 10/22] video: clps711x-fb: " Alexander Shiyan
2016-06-04  7:10 ` [PATCH 11/22] ARM: clps711x: Add basic DT support Alexander Shiyan
2016-06-04  7:10 ` [PATCH 12/22] ARM: dts: clps711x: Add DT Cirrus Logic EDB7211 Development board Alexander Shiyan
2016-06-04  7:10 ` [PATCH 13/22] spi: clps711x: Driver refactor Alexander Shiyan
2016-06-06 17:36   ` Mark Brown
2016-07-06 14:56     ` Arnd Bergmann
2016-06-04  7:10 ` [PATCH 14/22] ARM: clps711x: Remove boards support Alexander Shiyan
2016-06-04  7:10 ` [PATCH 15/22] video: clps711x: Remove old driver Alexander Shiyan
2016-06-04  7:10 ` [PATCH 16/22] clk: clps711x: Remove board support Alexander Shiyan
2016-08-19  0:13   ` Stephen Boyd
2016-06-04  7:10 ` [PATCH 17/22] clocksource: " Alexander Shiyan
2016-06-13 12:27   ` Daniel Lezcano
2016-06-04  7:10 ` [PATCH 18/22] irqchip: " Alexander Shiyan
2016-06-04  7:10 ` Alexander Shiyan [this message]
2016-06-04  7:10 ` [PATCH 20/22] gpio: " Alexander Shiyan
2016-06-08  8:51   ` Linus Walleij
2016-06-09  7:29     ` Arnd Bergmann
2016-06-04  7:10 ` [PATCH 21/22] ARM: clps711x: Switch to MULTIPLATFORM Alexander Shiyan
2016-06-04  7:10 ` [PATCH 22/22] ARM: config: Add a multi_v4t_defconfig Alexander Shiyan
2016-07-06 19:59 ` [PATCH 00/22] ARM: clps711x: Switch to DT and Multiplatform Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1465024214-22120-20-git-send-email-shc_work@mail.ru \
    --to=shc_work@mail.ru \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).