Skip to content

Commit ec1cbd5

Browse files
committed
iio: jesd204: axi_jesd204_rx: don't stop JESD FSM
Only stop the JESD framework state machine if we are actually using the framework. Fixes: 5b0ecbe ("iio: jesd204: axi_jesd204_rx: rework probe & remove") Signed-off-by: Nuno Sa <nuno.sa@analog.com>
1 parent f6e071c commit ec1cbd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iio/jesd204/axi_jesd204_rx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,8 @@ static int axi_jesd204_rx_remove(struct platform_device *pdev)
13361336
{
13371337
struct axi_jesd204_rx *jesd = platform_get_drvdata(pdev);
13381338

1339-
jesd204_fsm_stop(jesd->jdev, JESD204_LINKS_ALL);
1339+
if (jesd->jdev)
1340+
jesd204_fsm_stop(jesd->jdev, JESD204_LINKS_ALL);
13401341

13411342
axi_jesd204_rx_create_remove_devattrs(&pdev->dev, jesd, false);
13421343

0 commit comments

Comments
 (0)