diff options
Diffstat (limited to 'drivers/media/dvb-frontends/cxd2820r_core.c')
-rw-r--r-- | drivers/media/dvb-frontends/cxd2820r_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/cxd2820r_core.c b/drivers/media/dvb-frontends/cxd2820r_core.c index 42648643693e..9b658c1cf39a 100644 --- a/drivers/media/dvb-frontends/cxd2820r_core.c +++ b/drivers/media/dvb-frontends/cxd2820r_core.c | |||
@@ -688,7 +688,7 @@ struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *cfg, | |||
688 | { | 688 | { |
689 | struct cxd2820r_priv *priv; | 689 | struct cxd2820r_priv *priv; |
690 | int ret; | 690 | int ret; |
691 | u8 tmp, gpio[GPIO_COUNT]; | 691 | u8 tmp; |
692 | 692 | ||
693 | priv = kzalloc(sizeof(struct cxd2820r_priv), GFP_KERNEL); | 693 | priv = kzalloc(sizeof(struct cxd2820r_priv), GFP_KERNEL); |
694 | if (!priv) { | 694 | if (!priv) { |
@@ -735,6 +735,7 @@ struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *cfg, | |||
735 | * Use static GPIO configuration if GPIOLIB is undefined. | 735 | * Use static GPIO configuration if GPIOLIB is undefined. |
736 | * This is fallback condition. | 736 | * This is fallback condition. |
737 | */ | 737 | */ |
738 | u8 gpio[GPIO_COUNT]; | ||
738 | gpio[0] = (*gpio_chip_base >> 0) & 0x07; | 739 | gpio[0] = (*gpio_chip_base >> 0) & 0x07; |
739 | gpio[1] = (*gpio_chip_base >> 3) & 0x07; | 740 | gpio[1] = (*gpio_chip_base >> 3) & 0x07; |
740 | gpio[2] = 0; | 741 | gpio[2] = 0; |