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
615191bb
Commit
615191bb
authored
May 21, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] Account for MODULE_SYMBOL_PREFIX when requesting NOR chip driver
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
ecde2631
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/mtd/chips/gen_probe.c
drivers/mtd/chips/gen_probe.c
+3
-3
No files found.
drivers/mtd/chips/gen_probe.c
View file @
615191bb
...
...
@@ -207,14 +207,14 @@ static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map,
struct
cfi_private
*
cfi
=
map
->
fldrv_priv
;
__u16
type
=
primary
?
cfi
->
cfiq
->
P_ID
:
cfi
->
cfiq
->
A_ID
;
#ifdef CONFIG_MODULES
char
probename
[
32
];
char
probename
[
16
+
sizeof
(
MODULE_SYMBOL_PREFIX
)
];
cfi_cmdset_fn_t
*
probe_function
;
sprintf
(
probename
,
"cfi_cmdset_%4.4X"
,
type
);
sprintf
(
probename
,
MODULE_SYMBOL_PREFIX
"cfi_cmdset_%4.4X"
,
type
);
probe_function
=
__symbol_get
(
probename
);
if
(
!
probe_function
)
{
request_module
(
probename
);
request_module
(
probename
+
sizeof
(
MODULE_SYMBOL_PREFIX
)
-
1
);
probe_function
=
__symbol_get
(
probename
);
}
...
...
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