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
396674e5
Commit
396674e5
authored
May 08, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix non-modular case for DiskOnChip probe
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
5e535429
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
drivers/mtd/devices/docprobe.c
drivers/mtd/devices/docprobe.c
+31
-4
No files found.
drivers/mtd/devices/docprobe.c
View file @
396674e5
...
...
@@ -231,6 +231,27 @@ static inline int __init doccheck(void __iomem *potential, unsigned long physadr
static
int
docfound
;
#ifdef CONFIG_DOC2000
extern
void
DoC2k_init
(
struct
mtd_info
*
);
#define doc2k_initfunc (&DoC2k_init)
#else
#define doc2k_initfunc NULL
#endif
#ifdef CONFIG_DOC2001
extern
void
DoCMil_init
(
struct
mtd_info
*
);
#define docmil_initfunc (&DoCMil_init)
#else
#define docmil_initfunc NULL
#endif
#ifdef CONFIG_DOC2001PLUS
extern
void
DoCMilPlus_init
(
struct
mtd_info
*
);
#define docmplus_initfunc (&DoCMilPlus_init)
#else
#define docmplus_initfunc NULL
#endif
static
void
__init
DoC_Probe
(
unsigned
long
physadr
)
{
void
__iomem
*
docptr
;
...
...
@@ -280,12 +301,14 @@ static void __init DoC_Probe(unsigned long physadr)
name
=
"2000 TSOP"
;
im_funcname
=
"DoC2k_init"
;
im_modname
=
"doc2000"
;
initroutine
=
doc2k_initfunc
;
break
;
case
DOC_ChipID_Doc2k
:
name
=
"2000"
;
im_funcname
=
"DoC2k_init"
;
im_modname
=
"doc2000"
;
initroutine
=
doc2k_initfunc
;
break
;
case
DOC_ChipID_DocMil
:
...
...
@@ -293,9 +316,11 @@ static void __init DoC_Probe(unsigned long physadr)
#ifdef DOC_SINGLE_DRIVER
im_funcname
=
"DoC2k_init"
;
im_modname
=
"doc2000"
;
initroutine
=
doc2k_initfunc
;
#else
im_funcname
=
"DoCMil_init"
;
im_modname
=
"doc2001"
;
initroutine
=
docmil_initfunc
;
#endif
/* DOC_SINGLE_DRIVER */
break
;
...
...
@@ -304,16 +329,18 @@ static void __init DoC_Probe(unsigned long physadr)
name
=
"MillenniumPlus"
;
im_funcname
=
"DoCMilPlus_init"
;
im_modname
=
"doc2001plus"
;
initroutine
=
docmplus_initfunc
;
break
;
}
if
(
im_funcname
)
#ifdef CONFIG_MODULES
if
(
im_funcname
&&
!
initroutine
)
initroutine
=
symbol_get
(
im_funcname
);
if
(
!
initroutine
)
{
request_module
(
i
n
_modname
);
if
(
im_funcname
&&
!
initroutine
)
{
request_module
(
i
m
_modname
);
initroutine
=
symbol_get
(
im_funcname
);
}
#endif
if
(
initroutine
)
{
(
*
initroutine
)(
mtd
);
symbol_put_addr
(
initroutine
);
...
...
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