Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f7dd7ac authored by Wei Yongjun's avatar Wei Yongjun Committed by Stephen Boyd
Browse files

clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock_probe()



There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 63bb4fd6
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -383,10 +383,8 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev)


	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	reg = devm_ioremap_resource(dev, res);
	reg = devm_ioremap_resource(dev, res);
	if (IS_ERR(reg)) {
	if (IS_ERR(reg))
		dev_err(dev, "Could not map the periph clock registers\n");
		return PTR_ERR(reg);
		return PTR_ERR(reg);
	}


	driver_data = devm_kzalloc(dev, sizeof(*driver_data), GFP_KERNEL);
	driver_data = devm_kzalloc(dev, sizeof(*driver_data), GFP_KERNEL);
	if (!driver_data)
	if (!driver_data)