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
27f4e083
Commit
27f4e083
authored
Dec 16, 2005
by
Kyungmin Park
Committed by
Linus Torvalds
Dec 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] mtd onenand driver: use platform_device.h instead device.h
Signed-off-by:
Linus Torvalds
<
torvalds@osdl.org
>
parent
532a37cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/mtd/onenand/generic.c
drivers/mtd/onenand/generic.c
+2
-2
No files found.
drivers/mtd/onenand/generic.c
View file @
27f4e083
...
...
@@ -12,9 +12,9 @@
* This is a device driver for the OneNAND flash for generic boards.
*/
#include <linux/device.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h>
#include <linux/mtd/partitions.h>
...
...
@@ -39,7 +39,7 @@ static int __devinit generic_onenand_probe(struct device *dev)
{
struct
onenand_info
*
info
;
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
onenand
_platform_data
*
pdata
=
pdev
->
dev
.
platform_data
;
struct
flash
_platform_data
*
pdata
=
pdev
->
dev
.
platform_data
;
struct
resource
*
res
=
pdev
->
resource
;
unsigned
long
size
=
res
->
end
-
res
->
start
+
1
;
int
err
;
...
...
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