Commit ec5c05e5 authored by ye xingchen's avatar ye xingchen Committed by Bjorn Andersson
Browse files

hwspinlock: Use device_match_of_node()

parent 1b929c02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -367,7 +367,7 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
			continue;
		}

		if (hwlock->bank->dev->of_node == args.np) {
		if (device_match_of_node(hwlock->bank->dev, args.np)) {
			ret = 0;
			break;
		}