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
nexedi
linux
Commits
667c52f5
Commit
667c52f5
authored
Apr 07, 2003
by
Alan Cox
Committed by
Linus Torvalds
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] error handling for upd4990a
(Stephan Maciej)
parent
b9fdf644
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
drivers/char/upd4990a.c
drivers/char/upd4990a.c
+10
-1
No files found.
drivers/char/upd4990a.c
View file @
667c52f5
...
...
@@ -343,19 +343,28 @@ static struct miscdevice rtc_dev=
static
int
__init
rtc_init
(
void
)
{
int
err
=
0
;
if
(
!
request_region
(
UPD4990A_IO
,
1
,
"rtc"
))
{
printk
(
KERN_ERR
"upd4990a: could not acquire I/O port %#x
\n
"
,
UPD4990A_IO
);
return
-
EBUSY
;
}
err
=
misc_register
(
&
rtc_dev
);
if
(
err
)
{
printk
(
KERN_ERR
"upd4990a: can't misc_register() on minor=%d
\n
"
,
RTC_MINOR
);
release_region
(
UPD4990A_IO
,
1
);
return
err
;
}
#if 0
printk(KERN_INFO "\xB6\xDA\xDD\xC0\xDE \xC4\xDE\xB9\xB2 Driver\n"); /* Calender Clock Driver */
#else
printk
(
KERN_INFO
"Real Time Clock driver for NEC PC-9800 v"
RTC98_VERSION
"
\n
"
);
#endif
misc_register
(
&
rtc_dev
);
create_proc_read_entry
(
"driver/rtc"
,
0
,
NULL
,
rtc_read_proc
,
NULL
);
init_timer
(
&
rtc_uie_timer
);
...
...
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