Commit 8303fc50 authored by Alexander Potashev's avatar Alexander Potashev
Browse files

RT73025. ea-lpc1788: define misc_init_r() only if it will be called

* Guard misc_init_r() function with `#ifdef CONFIG_MISC_INIT_R`.
* Enable misc_init_r() for this board.
parent 5d429cc1
......@@ -50,11 +50,13 @@ int checkboard(void)
/*
* Configure board specific parts.
*/
#ifdef CONFIG_MISC_INIT_R
int misc_init_r(void)
{
/* TBD */
return 0;
}
#endif /* CONFIG_MISC_INIT_R */
/*
* Setup external RAM.
......
......@@ -209,6 +209,11 @@
"console=ttyS2,115200 panic=10"
#define CONFIG_BOOTCOMMAND "run netboot"
/*
* This ensures that the board-specific misc_init_r() gets invoked.
*/
#define CONFIG_MISC_INIT_R
/*
* Short-cuts to some useful commands (macros)
*/
......
Supports Markdown
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