Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54772
b: refs/heads/master
c: 61a7c36
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed May 8, 2007
1 parent 4a12f6a commit 9926154
Show file tree
Hide file tree
Showing 2 changed files with 36 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: 7ca1d488ffe4817adaba61cc05b972782f7d3f91
refs/heads/master: 61a7c36acb3da406d64c0da6288eab1c414a65ea
46 changes: 35 additions & 11 deletions trunk/drivers/rtc/rtc-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,38 @@ extern void rtc_dev_del_device(struct rtc_device *rtc);

#else

#define rtc_dev_init() do{}while(0)
#define rtc_dev_exit() do{}while(0)
#define rtc_dev_add_device(r) do{}while(0)
#define rtc_dev_del_device(r) do{}while(0)
static inline void rtc_dev_init(void)
{
}

static inline void rtc_dev_exit(void)
{
}

static inline void rtc_dev_add_device(struct rtc_device *rtc)
{
}

static inline void rtc_dev_del_device(struct rtc_device *rtc)
{
}

#endif

#ifdef CONFIG_RTC_INTF_PROC

void rtc_proc_add_device(struct rtc_device *rtc);
void rtc_proc_del_device(struct rtc_device *rtc);
extern void rtc_proc_add_device(struct rtc_device *rtc);
extern void rtc_proc_del_device(struct rtc_device *rtc);

#else

#define rtc_proc_add_device(r) do{}while(0)
#define rtc_proc_del_device(r) do{}while(0)
static inline void rtc_proc_add_device(struct rtc_device *rtc)
{
}

static inline void rtc_proc_del_device(struct rtc_device *rtc)
{
}

#endif

Expand All @@ -34,8 +50,16 @@ extern void rtc_sysfs_del_device(struct rtc_device *rtc);

#else

#define rtc_sysfs_init(c) do{}while(0)
#define rtc_sysfs_add_device(r) do{}while(0)
#define rtc_sysfs_del_device(r) do{}while(0)
static inline void rtc_sysfs_init(struct class *rtc)
{
}

static inline void rtc_sysfs_add_device(struct rtc_device *rtc)
{
}

static inline void rtc_sysfs_del_device(struct rtc_device *rtc)
{
}

#endif

0 comments on commit 9926154

Please sign in to comment.