Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146688
b: refs/heads/master
c: 4278600
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Apr 28, 2009
1 parent d910d3f commit 1c75394
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 8e0b842948156e3463879caed12b4ce51bed772e
refs/heads/master: 4278600644dee621bd50d7498e244b135612e0f6
17 changes: 16 additions & 1 deletion trunk/arch/sh/kernel/time_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka
* Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org>
* Copyright (C) 2002 - 2008 Paul Mundt
* Copyright (C) 2002 - 2009 Paul Mundt
* Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org>
*
* Some code taken from i386 version.
Expand Down Expand Up @@ -68,6 +68,21 @@ int set_rtc_time(struct rtc_time *tm)
}
EXPORT_SYMBOL(set_rtc_time);

static int __init rtc_generic_init(void)
{
struct platform_device *pdev;

if (rtc_sh_get_time == null_rtc_get_time)
return -ENODEV;

pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0);
if (IS_ERR(pdev))
return PTR_ERR(pdev);

return 0;
}
module_init(rtc_generic_init);

#ifndef CONFIG_GENERIC_TIME
void do_gettimeofday(struct timeval *tv)
{
Expand Down

0 comments on commit 1c75394

Please sign in to comment.