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

Commit 03c2d42a authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

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



Add code to do genl_init and genl_exit only for iWCN
architecture.

Change-Id: Icc2dd3183fa42c404aa119360c19bef9648af1a0
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 48dd209f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2949,9 +2949,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");

@@ -2975,6 +2977,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);