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
fdf7748b
Commit
fdf7748b
authored
Apr 03, 2012
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
media mx3 camera: prepare clk before enabling it
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
4e7b6c9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/media/video/mx3_camera.c
drivers/media/video/mx3_camera.c
+2
-2
No files found.
drivers/media/video/mx3_camera.c
View file @
fdf7748b
...
@@ -508,7 +508,7 @@ static void mx3_camera_activate(struct mx3_camera_dev *mx3_cam,
...
@@ -508,7 +508,7 @@ static void mx3_camera_activate(struct mx3_camera_dev *mx3_cam,
/* ipu_csi_init_interface() */
/* ipu_csi_init_interface() */
csi_reg_write
(
mx3_cam
,
conf
,
CSI_SENS_CONF
);
csi_reg_write
(
mx3_cam
,
conf
,
CSI_SENS_CONF
);
clk_enable
(
mx3_cam
->
clk
);
clk_
prepare_
enable
(
mx3_cam
->
clk
);
rate
=
clk_round_rate
(
mx3_cam
->
clk
,
mx3_cam
->
mclk
);
rate
=
clk_round_rate
(
mx3_cam
->
clk
,
mx3_cam
->
mclk
);
dev_dbg
(
icd
->
parent
,
"Set SENS_CONF to %x, rate %ld
\n
"
,
conf
,
rate
);
dev_dbg
(
icd
->
parent
,
"Set SENS_CONF to %x, rate %ld
\n
"
,
conf
,
rate
);
if
(
rate
)
if
(
rate
)
...
@@ -549,7 +549,7 @@ static void mx3_camera_remove_device(struct soc_camera_device *icd)
...
@@ -549,7 +549,7 @@ static void mx3_camera_remove_device(struct soc_camera_device *icd)
*
ichan
=
NULL
;
*
ichan
=
NULL
;
}
}
clk_disable
(
mx3_cam
->
clk
);
clk_disable
_unprepare
(
mx3_cam
->
clk
);
mx3_cam
->
icd
=
NULL
;
mx3_cam
->
icd
=
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