+static int qcom_wdt_get_restart_reason(struct qcom_wdt *wdt,Why? Just pass the syscon directly via DT.
+ const struct qcom_wdt_match_data *data)
+{
+ struct regmap *imem;
+ unsigned int val;
+ int ret;
+
+ imem = syscon_regmap_lookup_by_compatible(data->imem_compatible);
+ if (IS_ERR(imem))
+ return PTR_ERR(imem);