[media] em28xx: do not interpret eeprom content if eeprom key is invalid
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 3 Mar 2013 18:37:37 +0000 (15:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Mar 2013 18:48:58 +0000 (15:48 -0300)
commitf55eacbe744f696fa5ff48fe4fdc0f00edc08619
tree58edce55d71803a05e543d3e7189138aa7af2b06
parentd90f067713091f010672ddbd023691675a7b33ea
[media] em28xx: do not interpret eeprom content if eeprom key is invalid

If the eeprom key isn't valid, either a different (currently unknown) format
is used or the eeprom is corrupted.
In both cases it doesn't make sense to interpret the data.
Also print an error message.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-i2c.c