Skip to content

Commit

Permalink
io-mapping: move asm include inside the config option
Browse files Browse the repository at this point in the history
nouveau starting using these APIs, the first on non-x86 hw, and this
include isn't required on anything with real amounts of vmalloc space.

this fixes a build problem on powerpc.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Aug 12, 2010
1 parent 71beefe commit 31ce4bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/io-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <linux/slab.h>
#include <asm/io.h>
#include <asm/page.h>
#include <asm/iomap.h>

/*
* The io_mapping mechanism provides an abstraction for mapping
Expand All @@ -33,6 +32,8 @@

#ifdef CONFIG_HAVE_ATOMIC_IOMAP

#include <asm/iomap.h>

struct io_mapping {
resource_size_t base;
unsigned long size;
Expand Down

0 comments on commit 31ce4bf

Please sign in to comment.