aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-usb-v2/az6007.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb-v2/az6007.c b/drivers/media/dvb/dvb-usb-v2/az6007.c
index 4671eaa62f8d..bb7f61de093b 100644
--- a/drivers/media/dvb/dvb-usb-v2/az6007.c
+++ b/drivers/media/dvb/dvb-usb-v2/az6007.c
@@ -637,13 +637,13 @@ static int az6007_tuner_attach(struct dvb_usb_adapter *adap)
637 637
638int az6007_power_ctrl(struct dvb_usb_device *d, int onoff) 638int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
639{ 639{
640 struct az6007_device_state *st = d_to_priv(d); 640 struct az6007_device_state *state = d_to_priv(d);
641 int ret; 641 int ret;
642 642
643 pr_debug("%s()\n", __func__); 643 pr_debug("%s()\n", __func__);
644 644
645 if (!st->warm) { 645 if (!state->warm) {
646 mutex_init(&st->mutex); 646 mutex_init(&state->mutex);
647 647
648 ret = az6007_write(d, AZ6007_POWER, 0, 2, NULL, 0); 648 ret = az6007_write(d, AZ6007_POWER, 0, 2, NULL, 0);
649 if (ret < 0) 649 if (ret < 0)
@@ -674,7 +674,7 @@ int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
674 if (ret < 0) 674 if (ret < 0)
675 return ret; 675 return ret;
676 676
677 st->warm = true; 677 state->warm = true;
678 678
679 return 0; 679 return 0;
680 } 680 }