summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-03 22:32:02 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-03 22:32:02 +0200
commitdc17fb6dc2ea1965fc0a14674833643af678ec6f (patch)
treec85097368c95e894481b5c988716ebf22480192d /board
parentd3b86c496d8f45eddf8fb9ee1fd11418af406e66 (diff)
downloadblackbird-obmc-uboot-dc17fb6dc2ea1965fc0a14674833643af678ec6f.tar.gz
blackbird-obmc-uboot-dc17fb6dc2ea1965fc0a14674833643af678ec6f.zip
Cleanup build problems (on Fedora Core x86_64 build host)
Diffstat (limited to 'board')
-rw-r--r--board/amcc/yellowstone/flash.c3
-rw-r--r--board/amcc/yellowstone/yellowstone.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/board/amcc/yellowstone/flash.c b/board/amcc/yellowstone/flash.c
index 99fcfb5c7e..cd6a2e61e6 100644
--- a/board/amcc/yellowstone/flash.c
+++ b/board/amcc/yellowstone/flash.c
@@ -329,7 +329,6 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
volatile FLASH_WORD_SIZE *addr = (FLASH_WORD_SIZE *) (info->start[0]);
volatile FLASH_WORD_SIZE *addr2;
int flag, prot, sect, l_sect;
- int i;
if ((s_first < 0) || (s_first > s_last)) {
if (info->flash_id == FLASH_UNKNOWN) {
@@ -517,7 +516,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
*/
static int write_word(flash_info_t * info, ulong dest, ulong data)
{
- volatile vu_long *addr2 = (vu_long *) (info->start[0]);
+ vu_long *addr2 = (vu_long *) (info->start[0]);
volatile FLASH_WORD_SIZE *dest2 = (FLASH_WORD_SIZE *) dest;
volatile FLASH_WORD_SIZE *data2 = (FLASH_WORD_SIZE *) & data;
ulong start;
diff --git a/board/amcc/yellowstone/yellowstone.c b/board/amcc/yellowstone/yellowstone.c
index 840a46c865..a6b81e6008 100644
--- a/board/amcc/yellowstone/yellowstone.c
+++ b/board/amcc/yellowstone/yellowstone.c
@@ -315,10 +315,6 @@ int pci_pre_init(struct pci_controller *hose)
#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
void pci_target_init(struct pci_controller *hose)
{
- u16 cmdstat;
-
- DECLARE_GLOBAL_DATA_PTR;
-
/*--------------------------------------------------------------------------+
* Set up Direct MMIO registers
*--------------------------------------------------------------------------*/
OpenPOWER on IntegriCloud