Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7234d852 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss2: Add code to do genl_init and genl_exit only for iWCN arch"

parents 657a9dbb 03c2d42a
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2951,9 +2951,11 @@ static int icnss_probe(struct platform_device *pdev)

	init_completion(&priv->unblock_shutdown);

	if (priv->device_id == WCN6750_DEVICE_ID) {
		ret = icnss_genl_init();
		if (ret < 0)
			icnss_pr_err("ICNSS genl init failed %d\n", ret);
	}

	icnss_pr_info("Platform driver probed successfully\n");

@@ -2978,6 +2980,7 @@ static int icnss_remove(struct platform_device *pdev)

	icnss_pr_info("Removing driver: state: 0x%lx\n", priv->state);

	if (priv->device_id == WCN6750_DEVICE_ID)
		icnss_genl_exit();

	device_init_wakeup(&priv->pdev->dev, false);