Skip to content

Commit

Permalink
powerpc: create kernel/setup.h
Browse files Browse the repository at this point in the history
for functions defined by setup-common.c and used in setup_xx.c

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Stephen Rothwell committed Nov 9, 2005
1 parent fca5dcd commit 66ba135
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/setup-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
#include <asm/lmb.h>
#include <asm/xmon.h>

#include "setup.h"

#undef DEBUG

#ifdef DEBUG
Expand Down
6 changes: 6 additions & 0 deletions arch/powerpc/kernel/setup.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _POWERPC_KERNEL_SETUP_H
#define _POWERPC_KERNEL_SETUP_H

void check_for_initrd(void);

#endif /* _POWERPC_KERNEL_SETUP_H */
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include <asm/xmon.h>
#include <asm/time.h>

#include "setup.h"

#define DBG(fmt...)

#if defined CONFIG_KGDB
Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
#include <asm/xmon.h>
#include <asm/udbg.h>

#include "setup.h"

#ifdef DEBUG
#define DBG(fmt...) udbg_printf(fmt)
#else
Expand Down

0 comments on commit 66ba135

Please sign in to comment.