Skip to content

Commit

Permalink
[ARM] lh7a40x: avoid polluting the kernel's namespace
Browse files Browse the repository at this point in the history
Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 28, 2008
1 parent 275c8a2 commit fa44c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-lh7a40x/include/mach/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#ifndef __ASM_ARCH_IO_H
#define __ASM_ARCH_IO_H

#include <mach/hardware.h>

#define IO_SPACE_LIMIT 0xffffffff

/* No ISA or PCI bus on this machine. */
Expand Down
3 changes: 2 additions & 1 deletion drivers/serial/serial_lh7a40x.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
#include <linux/tty_flip.h>
#include <linux/serial_core.h>
#include <linux/serial.h>
#include <linux/io.h>

#include <asm/io.h>
#include <asm/irq.h>
#include <mach/hardware.h>

#define DEV_MAJOR 204
#define DEV_MINOR 16
Expand Down

0 comments on commit fa44c9e

Please sign in to comment.