Commit fc51c8eb authored by Nicolas Pitre's avatar Nicolas Pitre Committed by David Woodhouse

MTD XIP support: allyesconfig compile fix.

People insist on turning stuff on which doesn't make sense. Make it compile
in the case where the platform doesn't provide the necessary XIP primitives.
Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent bc4278da
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* $Id: xip.h,v 1.1 2004/11/05 22:41:06 nico Exp $ * $Id: xip.h,v 1.2 2004/12/01 15:49:10 nico Exp $
*/ */
#ifndef __LINUX_MTD_XIP_H__ #ifndef __LINUX_MTD_XIP_H__
...@@ -74,7 +74,15 @@ ...@@ -74,7 +74,15 @@
#define xip_elapsed_since(x) (signed)((OSCR - (x)) / 4) #define xip_elapsed_since(x) (signed)((OSCR - (x)) / 4)
#else #else
#error "missing IRQ and timer primitives for XIP MTD support"
#warning "missing IRQ and timer primitives for XIP MTD support"
#warning "some of the XIP MTD support code will be disabled"
#warning "your system will therefore be unresponsive when writing or erasing flash"
#define xip_irqpending() (0)
#define xip_currtime() (0)
#define xip_elapsed_since(x) (0)
#endif #endif
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment