media: atomisp: Turn asd->streaming state tracker into a bool
[platform/kernel/linux-starfive.git] / drivers / staging / media / atomisp / pci / atomisp_v4l2.c
index f914ab9..c68e906 100644 (file)
@@ -672,7 +672,7 @@ static int atomisp_suspend(struct device *dev)
                return -EBUSY;
 
        spin_lock_irqsave(&isp->lock, flags);
-       if (isp->asd.streaming != ATOMISP_DEVICE_STREAMING_DISABLED) {
+       if (isp->asd.streaming) {
                spin_unlock_irqrestore(&isp->lock, flags);
                dev_err(isp->dev, "atomisp cannot suspend at this time.\n");
                return -EINVAL;