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
ed446cc7
Commit
ed446cc7
authored
Feb 28, 2015
by
Brian Norris
Browse files
Options
Browse Files
Download
Plain Diff
Merge MTD updates into -next
parents
24542257
e423c90a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/mtd/nand/pxa3xx_nand.c
drivers/mtd/nand/pxa3xx_nand.c
+2
-0
No files found.
drivers/mtd/nand/pxa3xx_nand.c
View file @
ed446cc7
...
@@ -1622,6 +1622,8 @@ static int alloc_nand_resource(struct platform_device *pdev)
...
@@ -1622,6 +1622,8 @@ static int alloc_nand_resource(struct platform_device *pdev)
int
ret
,
irq
,
cs
;
int
ret
,
irq
,
cs
;
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
pdata
=
dev_get_platdata
(
&
pdev
->
dev
);
if
(
pdata
->
num_cs
<=
0
)
return
-
ENODEV
;
info
=
devm_kzalloc
(
&
pdev
->
dev
,
sizeof
(
*
info
)
+
(
sizeof
(
*
mtd
)
+
info
=
devm_kzalloc
(
&
pdev
->
dev
,
sizeof
(
*
info
)
+
(
sizeof
(
*
mtd
)
+
sizeof
(
*
host
))
*
pdata
->
num_cs
,
GFP_KERNEL
);
sizeof
(
*
host
))
*
pdata
->
num_cs
,
GFP_KERNEL
);
if
(
!
info
)
if
(
!
info
)
...
...
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