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
d2d8d0e5
Commit
d2d8d0e5
authored
May 11, 2002
by
William Stinson
Committed by
Jeff Garzik
May 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request_region janitor cleanup for rtc char driver
parent
2aad4762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/char/rtc.c
drivers/char/rtc.c
+2
-2
No files found.
drivers/char/rtc.c
View file @
d2d8d0e5
...
@@ -815,7 +815,7 @@ static int __init rtc_init(void)
...
@@ -815,7 +815,7 @@ static int __init rtc_init(void)
}
}
no_irq:
no_irq:
#else
#else
if
(
check_region
(
RTC_PORT
(
0
),
RTC_IO_EXTENT
))
if
(
!
request_region
(
RTC_PORT
(
0
),
RTC_IO_EXTENT
,
"rtc"
))
{
{
printk
(
KERN_ERR
"rtc: I/O port %d is not free.
\n
"
,
RTC_PORT
(
0
));
printk
(
KERN_ERR
"rtc: I/O port %d is not free.
\n
"
,
RTC_PORT
(
0
));
return
-
EIO
;
return
-
EIO
;
...
@@ -826,11 +826,11 @@ static int __init rtc_init(void)
...
@@ -826,11 +826,11 @@ static int __init rtc_init(void)
{
{
/* Yeah right, seeing as irq 8 doesn't even hit the bus. */
/* Yeah right, seeing as irq 8 doesn't even hit the bus. */
printk
(
KERN_ERR
"rtc: IRQ %d is not free.
\n
"
,
RTC_IRQ
);
printk
(
KERN_ERR
"rtc: IRQ %d is not free.
\n
"
,
RTC_IRQ
);
release_region
(
RTC_PORT
(
0
),
RTC_IO_EXTENT
);
return
-
EIO
;
return
-
EIO
;
}
}
#endif
#endif
request_region
(
RTC_PORT
(
0
),
RTC_IO_EXTENT
,
"rtc"
);
#endif
/* __sparc__ vs. others */
#endif
/* __sparc__ vs. others */
misc_register
(
&
rtc_dev
);
misc_register
(
&
rtc_dev
);
...
...
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