Re: [PATCH 1/7] arm: imx: power-off: change to syscon to access register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

On 15/05/2015 at 21:36:24 +0800, Frank.Li@xxxxxxxxxxxxx wrote :
>  static int imx_poweroff_probe(struct platform_device *pdev)
>  {
> -	snvs_base = of_iomap(pdev->dev.of_node, 0);
> -	if (!snvs_base) {
> +	struct device_node *nd;
> +
> +	nd = of_get_parent(pdev->dev.of_node);
> +	if (!nd)
> +		return -ENODEV;
> +	snvs = syscon_node_to_regmap (nd);
You should remove that space ---^


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux