Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
56bf2bda
Commit
56bf2bda
authored
Aug 01, 2008
by
Samuel Ortiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfd: Fix 7l66 and 6387 according to the new mfd-core API
Signed-off-by:
Samuel Ortiz
<
sameo@openedhand.com
>
parent
befb8444
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
drivers/mfd/t7l66xb.c
drivers/mfd/t7l66xb.c
+8
-3
drivers/mfd/tc6387xb.c
drivers/mfd/tc6387xb.c
+2
-2
No files found.
drivers/mfd/t7l66xb.c
View file @
56bf2bda
...
...
@@ -338,9 +338,14 @@ static int t7l66xb_probe(struct platform_device *dev)
t7l66xb_attach_irq
(
dev
);
t7l66xb_cells
[
T7L66XB_CELL_NAND
].
driver_data
=
pdata
->
nand_data
;
t7l66xb_cells
[
T7L66XB_CELL_NAND
].
platform_data
=
&
t7l66xb_cells
[
T7L66XB_CELL_NAND
];
t7l66xb_cells
[
T7L66XB_CELL_NAND
].
data_size
=
sizeof
(
t7l66xb_cells
[
T7L66XB_CELL_NAND
]);
ret
=
mfd_add_devices
(
dev
,
t7l66xb_cells
,
ARRAY_SIZE
(
t7l66xb_cells
),
iomem
,
t7l66xb
->
irq_base
);
ret
=
mfd_add_devices
(
&
dev
->
dev
,
dev
->
id
,
t7l66xb_cells
,
ARRAY_SIZE
(
t7l66xb_cells
),
iomem
,
t7l66xb
->
irq_base
);
if
(
!
ret
)
return
0
;
...
...
@@ -366,7 +371,7 @@ static int t7l66xb_remove(struct platform_device *dev)
t7l66xb_detach_irq
(
dev
);
iounmap
(
t7l66xb
->
scr
);
release_resource
(
&
t7l66xb
->
rscr
);
mfd_remove_devices
(
dev
);
mfd_remove_devices
(
&
dev
->
dev
);
platform_set_drvdata
(
dev
,
NULL
);
kfree
(
t7l66xb
);
...
...
drivers/mfd/tc6387xb.c
View file @
56bf2bda
...
...
@@ -119,8 +119,8 @@ static int tc6387xb_probe(struct platform_device *dev)
printk
(
KERN_INFO
"Toshiba tc6387xb initialised
\n
"
);
ret
=
mfd_add_devices
(
dev
,
tc6387xb_cells
,
ARRAY_SIZE
(
tc6387xb_cells
),
iomem
,
irq
);
ret
=
mfd_add_devices
(
&
dev
->
dev
,
dev
->
id
,
tc6387xb_cells
,
ARRAY_SIZE
(
tc6387xb_cells
),
iomem
,
irq
);
if
(
!
ret
)
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