Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61396
b: refs/heads/master
c: 7a5b805
h: refs/heads/master
v: v3
  • Loading branch information
Haavard Skinnemoen committed Jul 18, 2007
1 parent 4706e8b commit 49f3d3c
Show file tree
Hide file tree
Showing 7 changed files with 373 additions and 454 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: c6083cd61b5a64a1c73d1634744382f54cb99595
refs/heads/master: 7a5b80590772c29bba1d54d3685622177d6fe39f
31 changes: 0 additions & 31 deletions trunk/arch/avr32/mach-at32ap/at32ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,10 @@
#include <linux/init.h>
#include <linux/platform_device.h>

#include <asm/io.h>

#include <asm/arch/init.h>
#include <asm/arch/sm.h>

struct at32_sm system_manager;

static int __init at32_sm_init(void)
{
struct resource *regs;
struct at32_sm *sm = &system_manager;
int ret = -ENXIO;

regs = platform_get_resource(&at32_sm_device, IORESOURCE_MEM, 0);
if (!regs)
goto fail;

spin_lock_init(&sm->lock);
sm->pdev = &at32_sm_device;

ret = -ENOMEM;
sm->regs = ioremap(regs->start, regs->end - regs->start + 1);
if (!sm->regs)
goto fail;

return 0;

fail:
printk(KERN_ERR "Failed to initialize System Manager: %d\n", ret);
return ret;
}

void __init setup_platform(void)
{
at32_sm_init();
at32_clock_init();
at32_portmux_init();
}
Expand Down
Loading

0 comments on commit 49f3d3c

Please sign in to comment.