[PATCH v4 09/31] powerpc/fsl-pci: improve clock API use

Anatolij Gustschin agust at denx.de
Fri Aug 9 06:12:31 EST 2013


On Tue,  6 Aug 2013 22:43:49 +0200
Gerhard Sittig <gsi at denx.de> wrote:
...
> diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
> index 46ac1dd..549ff08 100644
> --- a/arch/powerpc/sysdev/fsl_pci.c
> +++ b/arch/powerpc/sysdev/fsl_pci.c
...
> +	clk = devm_clk_get(&pdev->dev, "per");
> +	if (!IS_ERR(clk)) {
> +		ret = clk_prepare_enable(clk);
> +		if (ret) {
> +			dev_err(dev, "Could not enable peripheral clock\n");

above line will break building. s/dev,/&pdev->dev,/

Thanks,
Anatolij


More information about the Linuxppc-dev mailing list