From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 14.mo3.mail-out.ovh.net ([188.165.43.98] helo=mo3.mail-out.ovh.net) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QoeiM-0004cp-L6 for barebox@lists.infradead.org; Wed, 03 Aug 2011 16:54:39 +0000 Received: from mail191.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 00602FFBF20 for ; Wed, 3 Aug 2011 18:55:45 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 3 Aug 2011 18:36:29 +0200 Message-Id: <1312389389-9255-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] serial_ns16550: drop the non working check To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/serial_ns16550.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 4ed2671..36d39cd 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -239,9 +239,6 @@ static int ns16550_probe(struct device_d *dev) /* we do expect platform specific data */ if (plat == NULL) return -EINVAL; - if (!(dev->resource[0].flags & IORESOURCE_MEM_TYPE_MASK) && - ((plat->reg_read == NULL) || (plat->reg_write == NULL))) - return -EINVAL; dev->priv = dev_request_mem_region(dev, 0); cdev = xzalloc(sizeof(*cdev)); -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox