Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7352
b: refs/heads/master
c: 573fc11
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Sep 7, 2005
1 parent 08d6206 commit cd82b22
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 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: cdb3826b9958c204bc8ffda2cf9bbe2d899ef90c
refs/heads/master: 573fc113133e0b0984d2c0090e706c6506661f91
5 changes: 3 additions & 2 deletions trunk/arch/m68k/bvme6000/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/fcntl.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/module.h>
#include <linux/mc146818rtc.h> /* For struct rtc_time and ioctls, etc */
#include <linux/smp_lock.h>
#include <asm/bvme6000hw.h>
Expand Down Expand Up @@ -171,12 +172,12 @@ static struct miscdevice rtc_dev = {
.fops = &rtc_fops
};

int __init rtc_DP8570A_init(void)
static int __init rtc_DP8570A_init(void)
{
if (!MACH_IS_BVME6000)
return -ENODEV;

printk(KERN_INFO "DP8570A Real Time Clock Driver v%s\n", RTC_VERSION);
return misc_register(&rtc_dev);
}

module_init(rtc_DP8570A_init);
4 changes: 2 additions & 2 deletions trunk/arch/m68k/mvme16x/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ static struct miscdevice rtc_dev=
.fops = &rtc_fops
};

int __init rtc_MK48T08_init(void)
static int __init rtc_MK48T08_init(void)
{
if (!MACH_IS_MVME16x)
return -ENODEV;

printk(KERN_INFO "MK48T08 Real Time Clock Driver v%s\n", RTC_VERSION);
return misc_register(&rtc_dev);
}

module_init(rtc_MK48T08_init);
9 changes: 1 addition & 8 deletions trunk/drivers/char/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ static DECLARE_MUTEX(misc_sem);
#define DYNAMIC_MINORS 64 /* like dynamic majors */
static unsigned char misc_minors[DYNAMIC_MINORS / 8];

extern int rtc_DP8570A_init(void);
extern int rtc_MK48T08_init(void);
extern int pmu_device_init(void);

#ifdef CONFIG_PROC_FS
Expand Down Expand Up @@ -303,12 +301,7 @@ static int __init misc_init(void)
misc_class = class_create(THIS_MODULE, "misc");
if (IS_ERR(misc_class))
return PTR_ERR(misc_class);
#ifdef CONFIG_MVME16x
rtc_MK48T08_init();
#endif
#ifdef CONFIG_BVME6000
rtc_DP8570A_init();
#endif

if (register_chrdev(MISC_MAJOR,"misc",&misc_fops)) {
printk("unable to get major %d for misc devices\n",
MISC_MAJOR);
Expand Down

0 comments on commit cd82b22

Please sign in to comment.