Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148573
b: refs/heads/master
c: c72aa07
h: refs/heads/master
i:
  148571: d1a4395
v: v3
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Jun 12, 2009
1 parent 9e764c7 commit fd40b90
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1800fe0e50ed22673cd895f2b0a7c2b79d3010a
refs/heads/master: c72aa0794a0ecc0b87ba9d5546215c26c8c80668
1 change: 0 additions & 1 deletion trunk/arch/blackfin/mm/blackfin_sram.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#ifndef __BLACKFIN_SRAM_H__
#define __BLACKFIN_SRAM_H__

extern void bfin_sram_init(void);
extern void *l1sram_alloc(size_t);

#endif
9 changes: 0 additions & 9 deletions trunk/arch/blackfin/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,6 @@ void __init mem_init(void)
initk, codek, datak, DMA_UNCACHED_REGION >> 10, (reservedpages << (PAGE_SHIFT-10)));
}

static int __init sram_init(void)
{
/* Initialize the blackfin L1 Memory. */
bfin_sram_init();

return 0;
}
pure_initcall(sram_init);

static void __init free_init_pages(const char *what, unsigned long begin, unsigned long end)
{
unsigned long addr;
Expand Down
5 changes: 4 additions & 1 deletion trunk/arch/blackfin/mm/sram-alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static void __init l2_sram_init(void)
spin_lock_init(&l2_sram_lock);
}

void __init bfin_sram_init(void)
static int __init bfin_sram_init(void)
{
sram_piece_cache = kmem_cache_create("sram_piece_cache",
sizeof(struct sram_piece),
Expand All @@ -233,7 +233,10 @@ void __init bfin_sram_init(void)
l1_data_sram_init();
l1_inst_sram_init();
l2_sram_init();

return 0;
}
pure_initcall(bfin_sram_init);

/* SRAM allocate function */
static void *_sram_alloc(size_t size, struct sram_piece *pfree_head,
Expand Down

0 comments on commit fd40b90

Please sign in to comment.