qcom_rpm.c (b304746c2a71fb0c001b5db93ea677d32f95b95f) qcom_rpm.c (349290fc9e761aaef6d6882721189f668ec5ff49)
1/*
2 * Copyright (c) 2014, Sony Mobile Communications AB.
3 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
4 * Author: Bjorn Andersson <bjorn.andersson@sonymobile.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 and
8 * only version 2 as published by the Free Software Foundation.

--- 575 unchanged lines hidden (view full) ---

584
585 syscon_np = of_parse_phandle(pdev->dev.of_node, "qcom,ipc", 0);
586 if (!syscon_np) {
587 dev_err(&pdev->dev, "no qcom,ipc node\n");
588 return -ENODEV;
589 }
590
591 rpm->ipc_regmap = syscon_node_to_regmap(syscon_np);
1/*
2 * Copyright (c) 2014, Sony Mobile Communications AB.
3 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
4 * Author: Bjorn Andersson <bjorn.andersson@sonymobile.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 and
8 * only version 2 as published by the Free Software Foundation.

--- 575 unchanged lines hidden (view full) ---

584
585 syscon_np = of_parse_phandle(pdev->dev.of_node, "qcom,ipc", 0);
586 if (!syscon_np) {
587 dev_err(&pdev->dev, "no qcom,ipc node\n");
588 return -ENODEV;
589 }
590
591 rpm->ipc_regmap = syscon_node_to_regmap(syscon_np);
592 of_node_put(syscon_np);
592 if (IS_ERR(rpm->ipc_regmap))
593 return PTR_ERR(rpm->ipc_regmap);
594
595 ret = of_property_read_u32_index(pdev->dev.of_node, "qcom,ipc", 1,
596 &rpm->ipc_offset);
597 if (ret < 0) {
598 dev_err(&pdev->dev, "no offset in qcom,ipc\n");
599 return -EINVAL;

--- 102 unchanged lines hidden ---
593 if (IS_ERR(rpm->ipc_regmap))
594 return PTR_ERR(rpm->ipc_regmap);
595
596 ret = of_property_read_u32_index(pdev->dev.of_node, "qcom,ipc", 1,
597 &rpm->ipc_offset);
598 if (ret < 0) {
599 dev_err(&pdev->dev, "no offset in qcom,ipc\n");
600 return -EINVAL;

--- 102 unchanged lines hidden ---