On Thu, Apr 02, 2009 at 11:49:55AM +0200, Guennadi Liakhovetski wrote:
> With the i.MX31 transition to clkdev clock names have changed, fix the 
> driver to use the new name.
> 
> Signed-off-by: Guennadi Liakhovetski <l...@denx.de>
> ---
> diff --git a/drivers/media/video/mx3_camera.c 
> b/drivers/media/video/mx3_camera.c
> index 70629e1..7e6b51d 100644
> --- a/drivers/media/video/mx3_camera.c
> +++ b/drivers/media/video/mx3_camera.c
> @@ -1100,7 +1100,7 @@ static int mx3_camera_probe(struct platform_device 
> *pdev)
>       }
>       memset(mx3_cam, 0, sizeof(*mx3_cam));
>  
> -     mx3_cam->clk = clk_get(&pdev->dev, "csi_clk");
> +     mx3_cam->clk = clk_get(&pdev->dev, "csi");

clk_get(&pdev->dev, NULL) please. The name is only for distinguishing
the clocks when there is more than one clock per device which isn't the
case here.

I just see that it's

_REGISTER_CLOCK("mx3-camera.0", "csi", csi_clk)

Should be

_REGISTER_CLOCK("mx3-camera.0", NULL, csi_clk)

instead.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to