Re: [RESUBMIT PATCH v7 7/9] regulator: sky81452: Modify Device Tree structure

From: Mark Brown
Date: Mon Nov 17 2014 - 09:19:23 EST


On Mon, Nov 17, 2014 at 05:33:08PM +0900, gyungoh@xxxxxxxxx wrote:

> np = of_get_child_by_name(dev->parent->of_node, "regulator");

> + ret = of_regulator_match(dev, np, &sky81452_match, 1);

Don't open code this, use regulators_node and of_match as previously
advised.

Attachment: signature.asc
Description: Digital signature