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
13cd19e8
Commit
13cd19e8
authored
Jul 10, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spi/omap-100k: Prepare and unprepare clocks
Signed-off-by:
Mark Brown
<
broonie@linaro.org
>
parent
022a9412
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
drivers/spi/spi-omap-100k.c
drivers/spi/spi-omap-100k.c
+8
-8
No files found.
drivers/spi/spi-omap-100k.c
View file @
13cd19e8
...
...
@@ -303,13 +303,13 @@ static int omap1_spi100k_setup(struct spi_device *spi)
spi100k_open
(
spi
->
master
);
clk_enable
(
spi100k
->
ick
);
clk_enable
(
spi100k
->
fck
);
clk_
prepare_
enable
(
spi100k
->
ick
);
clk_
prepare_
enable
(
spi100k
->
fck
);
ret
=
omap1_spi100k_setup_transfer
(
spi
,
NULL
);
clk_disable
(
spi100k
->
ick
);
clk_disable
(
spi100k
->
fck
);
clk_disable
_unprepare
(
spi100k
->
ick
);
clk_disable
_unprepare
(
spi100k
->
fck
);
return
ret
;
}
...
...
@@ -318,8 +318,8 @@ static int omap1_spi100k_prepare_hardware(struct spi_master *master)
{
struct
omap1_spi100k
*
spi100k
=
spi_master_get_devdata
(
master
);
clk_enable
(
spi100k
->
ick
);
clk_enable
(
spi100k
->
fck
);
clk_
prepare_
enable
(
spi100k
->
ick
);
clk_
prepare_
enable
(
spi100k
->
fck
);
return
0
;
}
...
...
@@ -396,8 +396,8 @@ static int omap1_spi100k_unprepare_hardware(struct spi_master *master)
{
struct
omap1_spi100k
*
spi100k
=
spi_master_get_devdata
(
master
);
clk_disable
(
spi100k
->
ick
);
clk_disable
(
spi100k
->
fck
);
clk_disable
_unprepare
(
spi100k
->
ick
);
clk_disable
_unprepare
(
spi100k
->
fck
);
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