[media] em28xx: print a message at disconnect
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 12 Jan 2014 22:22:07 +0000 (19:22 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 14 Jan 2014 16:38:11 +0000 (14:38 -0200)
That helps to identify if something fails and explain why em28xx
struct is not freed (if it ever happens).

Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-audio.c
drivers/media/usb/em28xx/em28xx-dvb.c
drivers/media/usb/em28xx/em28xx-input.c
drivers/media/usb/em28xx/em28xx-video.c

index 7f762db94b5f774d57c9ed20f779b2565726099c..26cf431b1a46c17fd3fed1d34ca59f5532c415a2 100644 (file)
@@ -956,6 +956,8 @@ static int em28xx_audio_fini(struct em28xx *dev)
                return 0;
        }
 
+       em28xx_info("Closing audio extension");
+
        snd_card_disconnect(dev->adev.sndcard);
        em28xx_audio_free_urb(dev);
 
index 5ea563e3f0e416b69a3f1bb0e540b81259e09c58..f4cdf9e8dc1888ced8e71fcc3a13f48d30283415 100644 (file)
@@ -1472,6 +1472,8 @@ static int em28xx_dvb_fini(struct em28xx *dev)
                return 0;
        }
 
+       em28xx_info("Closing DVB extension");
+
        if (dev->dvb) {
                struct em28xx_dvb *dvb = dev->dvb;
 
index 61c061f3a47626e90df3ca46de2f61ce4bf241ab..18f65d89d4bc783a5005fc7b3aaa2b196c1c9904 100644 (file)
@@ -810,6 +810,8 @@ static int em28xx_ir_fini(struct em28xx *dev)
                return 0;
        }
 
+       em28xx_info("Closing input extension");
+
        em28xx_shutdown_buttons(dev);
 
        /* skip detach on non attached boards */
index 587ff3fe9402aed421c3154816251b37a2950f89..1486d47409738ccf4f9a4ed2697f12b3d3266399 100644 (file)
@@ -1894,6 +1894,8 @@ static int em28xx_v4l2_fini(struct em28xx *dev)
                return 0;
        }
 
+       em28xx_info("Closing video extension");
+
        v4l2_device_disconnect(&dev->v4l2_dev);
 
        em28xx_uninit_usb_xfer(dev, EM28XX_ANALOG_MODE);