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
Kirill Smelkov
linux
Commits
69fb4ca0
Commit
69fb4ca0
authored
Apr 29, 2018
by
Boris Brezillon
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'nand/davinci-clock' of
git://git.infradead.org/linux-mtd
into HEAD
Prepare things for davinci clk driver cleanup
parents
60cc43fc
a8e3923a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
drivers/mtd/nand/raw/davinci_nand.c
drivers/mtd/nand/raw/davinci_nand.c
+1
-24
No files found.
drivers/mtd/nand/raw/davinci_nand.c
View file @
69fb4ca0
...
...
@@ -27,7 +27,6 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/mtd/rawnand.h>
#include <linux/mtd/partitions.h>
...
...
@@ -55,7 +54,6 @@ struct davinci_nand_info {
struct
nand_chip
chip
;
struct
device
*
dev
;
struct
clk
*
clk
;
bool
is_readmode
;
...
...
@@ -703,22 +701,6 @@ static int nand_davinci_probe(struct platform_device *pdev)
/* Use board-specific ECC config */
info
->
chip
.
ecc
.
mode
=
pdata
->
ecc_mode
;
ret
=
-
EINVAL
;
info
->
clk
=
devm_clk_get
(
&
pdev
->
dev
,
"aemif"
);
if
(
IS_ERR
(
info
->
clk
))
{
ret
=
PTR_ERR
(
info
->
clk
);
dev_dbg
(
&
pdev
->
dev
,
"unable to get AEMIF clock, err %d
\n
"
,
ret
);
return
ret
;
}
ret
=
clk_prepare_enable
(
info
->
clk
);
if
(
ret
<
0
)
{
dev_dbg
(
&
pdev
->
dev
,
"unable to enable AEMIF clock, err %d
\n
"
,
ret
);
goto
err_clk_enable
;
}
spin_lock_irq
(
&
davinci_nand_lock
);
/* put CSxNAND into NAND mode */
...
...
@@ -732,7 +714,7 @@ static int nand_davinci_probe(struct platform_device *pdev)
ret
=
nand_scan_ident
(
mtd
,
pdata
->
mask_chipsel
?
2
:
1
,
NULL
);
if
(
ret
<
0
)
{
dev_dbg
(
&
pdev
->
dev
,
"no NAND chip(s) found
\n
"
);
goto
err
;
return
ret
;
}
switch
(
info
->
chip
.
ecc
.
mode
)
{
...
...
@@ -838,9 +820,6 @@ static int nand_davinci_probe(struct platform_device *pdev)
nand_cleanup
(
&
info
->
chip
);
err:
clk_disable_unprepare
(
info
->
clk
);
err_clk_enable:
spin_lock_irq
(
&
davinci_nand_lock
);
if
(
info
->
chip
.
ecc
.
mode
==
NAND_ECC_HW_SYNDROME
)
ecc4_busy
=
false
;
...
...
@@ -859,8 +838,6 @@ static int nand_davinci_remove(struct platform_device *pdev)
nand_release
(
nand_to_mtd
(
&
info
->
chip
));
clk_disable_unprepare
(
info
->
clk
);
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