On Tuesday, 23 November 2021 12:29:00 CET Anilkumar Kolli wrote: > + ret = of_property_read_u32(dev->of_node, "memory-region", > + &hremote_phandle); > + if (ret) { > + ath11k_dbg(ab, ATH11K_DBG_QMI, > + "qmi fail to get hremote phandle\n"); > + return ret; > + } > + > + hremote_node = of_find_node_by_phandle(hremote_phandle); > + if (!hremote_node) { > + ath11k_dbg(ab, ATH11K_DBG_QMI, > + "qmi fail to get hremote_node\n"); > + return ret; > + } Afaik, this can be combined via hremote_node = of_parse_phandle(dev->of_node, "memory-region", 0); Kind regards, Sven
Attachment:
signature.asc
Description: This is a digitally signed message part.