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
60178b63
Commit
60178b63
authored
Mar 07, 2012
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w1 i.MX: prepare/unprepare clock
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
c943740c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/w1/masters/mxc_w1.c
drivers/w1/masters/mxc_w1.c
+2
-2
No files found.
drivers/w1/masters/mxc_w1.c
View file @
60178b63
...
...
@@ -138,7 +138,7 @@ static int __devinit mxc_w1_probe(struct platform_device *pdev)
goto
failed_ioremap
;
}
clk_enable
(
mdev
->
clk
);
clk_
prepare_
enable
(
mdev
->
clk
);
__raw_writeb
(
mdev
->
clkdiv
,
mdev
->
regs
+
MXC_W1_TIME_DIVIDER
);
mdev
->
bus_master
.
data
=
mdev
;
...
...
@@ -178,7 +178,7 @@ static int __devexit mxc_w1_remove(struct platform_device *pdev)
iounmap
(
mdev
->
regs
);
release_mem_region
(
res
->
start
,
resource_size
(
res
));
clk_disable
(
mdev
->
clk
);
clk_disable
_unprepare
(
mdev
->
clk
);
clk_put
(
mdev
->
clk
);
platform_set_drvdata
(
pdev
,
NULL
);
...
...
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