Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331187
b: refs/heads/master
c: f606876
h: refs/heads/master
i:
  331185: f67aa10
  331183: 9500816
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent feedfe1 commit d2a1042
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36f647bad3d35546892c3639328479355da8690d
refs/heads/master: f6068764573d2f29529c8835126dabe3f2096c1f
8 changes: 4 additions & 4 deletions trunk/drivers/media/usb/dvb-usb-v2/anysee.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,8 @@ static int anysee_ci_init(struct dvb_usb_device *d)
if (ret)
return ret;

state->ci_attached = true;

return 0;
}

Expand All @@ -1225,7 +1227,7 @@ static void anysee_ci_release(struct dvb_usb_device *d)
struct anysee_state *state = d_to_priv(d);

/* detach CI */
if (state->has_ci)
if (state->ci_attached)
dvb_ca_en50221_release(&state->ci);

return;
Expand Down Expand Up @@ -1257,10 +1259,8 @@ static int anysee_init(struct dvb_usb_device *d)
/* attach CI */
if (state->has_ci) {
ret = anysee_ci_init(d);
if (ret) {
state->has_ci = false;
if (ret)
return ret;
}
}

return 0;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/usb/dvb-usb-v2/anysee.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct anysee_state {
u8 seq;
u8 fe_id:1; /* frondend ID */
u8 has_ci:1;
u8 ci_attached:1;
struct dvb_ca_en50221 ci;
unsigned long ci_cam_ready; /* jiffies */
};
Expand Down

0 comments on commit d2a1042

Please sign in to comment.