diff options
author | Haren Myneni <haren@us.ibm.com> | 2012-07-11 15:18:44 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-11 18:22:32 +1000 |
commit | e1612de9e4cdf375c3cf1c72434ab8abdcb3927e (patch) | |
tree | d2bf73a13ea6e92c9c79d4300294584ef82767c2 /include/linux | |
parent | 475d0094293b51353e342d1198377967dbc48169 (diff) | |
download | op-kernel-dev-e1612de9e4cdf375c3cf1c72434ab8abdcb3927e.zip op-kernel-dev-e1612de9e4cdf375c3cf1c72434ab8abdcb3927e.tar.gz |
powerpc: Disable /dev/port interface on systems without an ISA bridge
Some power systems do not have legacy ISA devices. So, /dev/port is not
a valid interface on these systems. User level tools such as kbdrate is
trying to access the device using this interface which is causing the
system crash.
This patch will fix this issue by not creating this interface on these
powerpc systems.
Signed-off-by: Haren Myneni <haren@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h index 7fd2d21..069e407 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -67,4 +67,13 @@ int check_signature(const volatile void __iomem *io_addr, const unsigned char *signature, int length); void devm_ioremap_release(struct device *dev, void *res); +/* + * Some systems do not have legacy ISA devices. + * /dev/port is not a valid interface on these systems. + * So for those archs, <asm/io.h> should define the following symbol. + */ +#ifndef arch_has_dev_port +#define arch_has_dev_port() (1) +#endif + #endif /* _LINUX_IO_H */ |