summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/tm6000/tm6000-input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/tm6000/tm6000-input.c b/drivers/media/video/tm6000/tm6000-input.c
index e3467d4245c..af4bcf5288a 100644
--- a/drivers/media/video/tm6000/tm6000-input.c
+++ b/drivers/media/video/tm6000/tm6000-input.c
@@ -377,6 +377,9 @@ int tm6000_ir_int_start(struct tm6000_core *dev)
{
struct tm6000_IR *ir = dev->ir;
+ if (!ir)
+ return;
+
return __tm6000_ir_int_start(ir->rc);
}
@@ -384,6 +387,9 @@ void tm6000_ir_int_stop(struct tm6000_core *dev)
{
struct tm6000_IR *ir = dev->ir;
+ if (!ir || !ir->rc)
+ return;
+
__tm6000_ir_int_stop(ir->rc);
}