Skip to content

Commit

Permalink
ARM: OMAP: Fix relative includes for debug-devices.h
Browse files Browse the repository at this point in the history
As discussed on linux-arm-kernel, we want to avoid
relative includes for the arch/arm/*omap* shared code:

http://www.spinics.net/lists/linux-omap/msg80520.html

Let's add plat/debug-devices.h for debug_card_init()
to fix the relative includes.

Note that drivers must not use this header as it will
break build for omap2+ CONFIG_MULTIPLATFORM builds.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Oct 31, 2012
1 parent 5c2e885 commit 32dee01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <asm/mach/map.h>

#include <plat-omap/dma-omap.h>
#include "debug-devices.h"
#include <plat/debug-devices.h>

#include <video/omapdss.h>
#include <video/omap-panel-generic-dpi.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/debug-devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/smc91x.h>

#include <mach/hardware.h>
#include "../mach-omap2/debug-devices.h"
#include <plat/debug-devices.h>

/* Many OMAP development platforms reuse the same "debug board"; these
* platforms include H2, H3, H4, and Perseus2.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
#ifndef _OMAP_DEBUG_DEVICES_H
#define _OMAP_DEBUG_DEVICES_H

#include <linux/types.h>

/* for TI reference platforms sharing the same debug card */
extern int debug_card_init(u32 addr, unsigned gpio);

#endif

0 comments on commit 32dee01

Please sign in to comment.