Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28872
b: refs/heads/master
c: a341305
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Jun 22, 2006
1 parent 089a155 commit 478697a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 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: 005b5e4d0c7795d2ec298c34c96cbe2c1e1902b0
refs/heads/master: a341305e94982c66a2e94125a24b860605da9066
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c2410/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ extern struct sys_timer s3c24xx_timer;

/* system device classes */

extern struct sysdev_class s3c2410_sysclass;
extern struct sysdev_class s3c2440_sysclass;
extern struct sysdev_class s3c2442_sysclass;
24 changes: 23 additions & 1 deletion trunk/arch/arm/mach-s3c2410/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/sysdev.h>
#include <linux/platform_device.h>

#include <asm/mach/arch.h>
Expand Down Expand Up @@ -110,9 +111,30 @@ void __init s3c2410_init_clocks(int xtal)
s3c24xx_setup_clocks(xtal, fclk, hclk, pclk);
}

struct sysdev_class s3c2410_sysclass = {
set_kset_name("s3c2410-core"),
};

static struct sys_device s3c2410_sysdev = {
.cls = &s3c2410_sysclass,
};

/* need to register class before we actually register the device, and
* we also need to ensure that it has been initialised before any of the
* drivers even try to use it (even if not on an s3c2440 based system)
* as a driver which may support both 2410 and 2440 may try and use it.
*/

static int __init s3c2410_core_init(void)
{
return sysdev_class_register(&s3c2410_sysclass);
}

core_initcall(s3c2410_core_init);

int __init s3c2410_init(void)
{
printk("S3C2410: Initialising architecture\n");

return 0;
return sysdev_register(&s3c2410_sysdev);
}

0 comments on commit 478697a

Please sign in to comment.