diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-04 16:24:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-04 16:24:02 -0300 |
commit | db0a2901a32c44510d7d429358d017143a649a70 (patch) | |
tree | 4e4e41cf2e27aa4940f9c0711ca2a3bf7557a805 /drivers/media/video/saa7115.c | |
parent | d210baf53b699fc61aa891c177b71d7082d3b957 (diff) | |
parent | 4cce1655b26a4df1e619b2aa3d2eea1b7a6e906c (diff) |
Merge branch 'fixes_stg' of ../git_old into fixes
Diffstat (limited to 'drivers/media/video/saa7115.c')
-rw-r--r-- | drivers/media/video/saa7115.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index bcd1c8f6cf6..ad733caec72 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c @@ -1489,10 +1489,9 @@ static int saa7115_probe(struct i2c_client *client, client->addr << 1, client->adapter->name); state = kzalloc(sizeof(struct saa711x_state), GFP_KERNEL); - i2c_set_clientdata(client, state); - if (state == NULL) { + if (state == NULL) return -ENOMEM; - } + i2c_set_clientdata(client, state); state->input = -1; state->output = SAA7115_IPORT_ON; state->enable = 1; |