serial_ns16550: drop the non working check
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
376a2dbfe0
commit
454f331bfe
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue