Unverified Commit 35797503 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!2480 coresight: Fix loss of connection info when a module is unloaded

parents afacf632 694cdcfa
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -1443,13 +1443,8 @@ static int coresight_remove_match(struct device *dev, void *data)
		if (csdev->dev.fwnode == conn->child_fwnode) {
			iterator->orphan = true;
			coresight_remove_links(iterator, conn);
			/*
			 * Drop the reference to the handle for the remote
			 * device acquired in parsing the connections from
			 * platform data.
			 */
			fwnode_handle_put(conn->child_fwnode);
			conn->child_fwnode = NULL;

			conn->child_dev = NULL;
			/* No need to continue */
			break;
		}