Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6dc0dcde
Commit
6dc0dcde
authored
Sep 08, 2015
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Use platform_device_register_simple("rtc-generic")
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
72581cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
arch/parisc/kernel/time.c
arch/parisc/kernel/time.c
+4
-10
No files found.
arch/parisc/kernel/time.c
View file @
6dc0dcde
...
@@ -224,20 +224,14 @@ void __init start_cpu_itimer(void)
...
@@ -224,20 +224,14 @@ void __init start_cpu_itimer(void)
per_cpu
(
cpu_data
,
cpu
).
it_value
=
next_tick
;
per_cpu
(
cpu_data
,
cpu
).
it_value
=
next_tick
;
}
}
static
struct
platform_device
rtc_generic_dev
=
{
.
name
=
"rtc-generic"
,
.
id
=
-
1
,
};
static
int
__init
rtc_init
(
void
)
static
int
__init
rtc_init
(
void
)
{
{
if
(
platform_device_register
(
&
rtc_generic_dev
)
<
0
)
struct
platform_device
*
pdev
;
printk
(
KERN_ERR
"unable to register rtc device...
\n
"
);
/* not necessarily an error */
pdev
=
platform_device_register_simple
(
"rtc-generic"
,
-
1
,
NULL
,
0
);
return
0
;
return
PTR_ERR_OR_ZERO
(
pdev
)
;
}
}
module_init
(
rtc_init
);
device_initcall
(
rtc_init
);
void
read_persistent_clock
(
struct
timespec
*
ts
)
void
read_persistent_clock
(
struct
timespec
*
ts
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment