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
953a6ce6
Commit
953a6ce6
authored
Apr 01, 2003
by
Rusty Russell
Committed by
Linus Torvalds
Apr 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] eisa_eeprom.c misc_register patch
From: Chris Wilson <chris@qwirx.com>
parent
d7a221c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
drivers/parisc/eisa_eeprom.c
drivers/parisc/eisa_eeprom.c
+14
-4
No files found.
drivers/parisc/eisa_eeprom.c
View file @
953a6ce6
...
@@ -96,11 +96,21 @@ static struct miscdevice eisa_eeprom_dev=
...
@@ -96,11 +96,21 @@ static struct miscdevice eisa_eeprom_dev=
int
__init
eisa_eeprom_init
(
unsigned
long
addr
)
int
__init
eisa_eeprom_init
(
unsigned
long
addr
)
{
{
if
(
addr
)
{
int
retval
;
/* XXX why return success when we haven't done anything? */
if
(
!
addr
)
return
0
;
eeprom_addr
=
addr
;
eeprom_addr
=
addr
;
misc_register
(
&
eisa_eeprom_dev
);
printk
(
KERN_INFO
"EISA EEPROM at 0x%lx
\n
"
,
eeprom_addr
);
retval
=
misc_register
(
&
eisa_eeprom_dev
);
if
(
retval
<
0
)
{
printk
(
KERN_ERR
"EISA EEPROM: cannot register misc device.
\n
"
);
return
retval
;
}
}
printk
(
KERN_INFO
"EISA EEPROM at 0x%lx
\n
"
,
eeprom_addr
);
return
0
;
return
0
;
}
}
...
...
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