Commit 44e0d7de authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] cxd2820r: silence compiler warning

drivers/media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_attach':
drivers/media/dvb-frontends/cxd2820r_core.c:691:10: warning: unused variable 'gpio' [-Wunused-variable]
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 78a0b060
...@@ -688,7 +688,7 @@ struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *cfg, ...@@ -688,7 +688,7 @@ struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *cfg,
{ {
struct cxd2820r_priv *priv; struct cxd2820r_priv *priv;
int ret; int ret;
u8 tmp, gpio[GPIO_COUNT]; u8 tmp;
priv = kzalloc(sizeof(struct cxd2820r_priv), GFP_KERNEL); priv = kzalloc(sizeof(struct cxd2820r_priv), GFP_KERNEL);
if (!priv) { if (!priv) {
...@@ -735,6 +735,7 @@ struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *cfg, ...@@ -735,6 +735,7 @@ struct dvb_frontend *cxd2820r_attach(const struct cxd2820r_config *cfg,
* Use static GPIO configuration if GPIOLIB is undefined. * Use static GPIO configuration if GPIOLIB is undefined.
* This is fallback condition. * This is fallback condition.
*/ */
u8 gpio[GPIO_COUNT];
gpio[0] = (*gpio_chip_base >> 0) & 0x07; gpio[0] = (*gpio_chip_base >> 0) & 0x07;
gpio[1] = (*gpio_chip_base >> 3) & 0x07; gpio[1] = (*gpio_chip_base >> 3) & 0x07;
gpio[2] = 0; gpio[2] = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment