aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial_sci.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-06 10:59:16 +0100
committerSimon Horman <horms+renesas@verge.net.au>2013-12-24 11:17:44 +0900
commit1fcc91a607de0bf72d3a6073dfe459f7e9145ac5 (patch)
tree2ca355cad0c1b0565437ccc782e8e56f93a86e24 /include/linux/serial_sci.h
parentserial: sh-sci: Don't check IRQ in verify port operation (diff)
downloadlinux-dev-1fcc91a607de0bf72d3a6073dfe459f7e9145ac5.tar.xz
linux-dev-1fcc91a607de0bf72d3a6073dfe459f7e9145ac5.zip
serial: sh-sci: Support resources passed through platform resources
Memory and IRQ resources are currently passed to the driver through platform data. Support passing them through the standard platform resources mechanism instead. This deprecates platform data resources. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'include/linux/serial_sci.h')
-rw-r--r--include/linux/serial_sci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h
index 12cf50c1c047..42620f1dce82 100644
--- a/include/linux/serial_sci.h
+++ b/include/linux/serial_sci.h
@@ -107,10 +107,10 @@ enum {
}
#define SCIx_IRQ_IS_MUXED(port) \
- ((port)->cfg->irqs[SCIx_ERI_IRQ] == \
- (port)->cfg->irqs[SCIx_RXI_IRQ]) || \
- ((port)->cfg->irqs[SCIx_ERI_IRQ] && \
- !(port)->cfg->irqs[SCIx_RXI_IRQ])
+ ((port)->irqs[SCIx_ERI_IRQ] == \
+ (port)->irqs[SCIx_RXI_IRQ]) || \
+ ((port)->irqs[SCIx_ERI_IRQ] && \
+ ((port)->irqs[SCIx_RXI_IRQ] < 0))
/*
* SCI register subset common for all port types.
* Not all registers will exist on all parts.