[PATCH 1/4] clk: imx: imx8mp: Add audiomix block control

Marek Vasut marex at denx.de
Wed Jun 15 08:08:28 PDT 2022


On 6/15/22 16:30, Abel Vesa wrote:

[...]

>> +static int clk_imx8mp_audiomix_probe(struct platform_device *pdev)
>> +{
>> +	struct clk_imx8mp_audiomix_priv *priv;
>> +	struct device *dev = &pdev->dev;
>> +	struct resource *res;
>> +	void __iomem *base;
>> +	struct clk_hw *hw;
>> +	int i;
>> +
>> +	priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
>> +	if (!priv)
>> +		return -ENOMEM;
>> +
>> +	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> +	base = devm_ioremap_resource(dev, res);
>> +	if (IS_ERR(base))
>> +		return PTR_ERR(base);
>> +
> 
> Hmm, the audiomix blk-ctl driver uses the PD for this device.
> That is not going to work.

What is not going to work. Can you elaborate on your concerns ?



More information about the linux-arm-kernel mailing list