If device OF node is available then interrupt is read from DT node
but for thermal sub module, mfd device add interrupt as platform
resource. Therefore, initialize of_node pointer of thermal device
after reading interrupt from platform resource.
Bug
200204825
Change-Id: If0fa3337e6b8488134d72814ab10205a92f8b9e9
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/
1165665
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
struct max77620_therm_info *mtherm;
int ret;
- pdev->dev.of_node = pdev->dev.parent->of_node;
mtherm = devm_kzalloc(&pdev->dev, sizeof(*mtherm), GFP_KERNEL);
if (!mtherm)
dev_err(&pdev->dev, "Alarm irq number not available\n");
return -EINVAL;
}
+ pdev->dev.of_node = pdev->dev.parent->of_node;
mtherm->dev = &pdev->dev;
mtherm->rmap = dev_get_regmap(pdev->dev.parent, NULL);