Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa929ad7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] em28xx: print a message at disconnect



That helps to identify if something fails and explain why em28xx
struct is not freed (if it ever happens).

Reviewed-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 1fe2e3bf
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -956,6 +956,8 @@ static int em28xx_audio_fini(struct em28xx *dev)
		return 0;
		return 0;
	}
	}


	em28xx_info("Closing audio extension");

	snd_card_disconnect(dev->adev.sndcard);
	snd_card_disconnect(dev->adev.sndcard);
	em28xx_audio_free_urb(dev);
	em28xx_audio_free_urb(dev);


+2 −0
Original line number Original line Diff line number Diff line
@@ -1472,6 +1472,8 @@ static int em28xx_dvb_fini(struct em28xx *dev)
		return 0;
		return 0;
	}
	}


	em28xx_info("Closing DVB extension");

	if (dev->dvb) {
	if (dev->dvb) {
		struct em28xx_dvb *dvb = dev->dvb;
		struct em28xx_dvb *dvb = dev->dvb;


+2 −0
Original line number Original line Diff line number Diff line
@@ -810,6 +810,8 @@ static int em28xx_ir_fini(struct em28xx *dev)
		return 0;
		return 0;
	}
	}


	em28xx_info("Closing input extension");

	em28xx_shutdown_buttons(dev);
	em28xx_shutdown_buttons(dev);


	/* skip detach on non attached boards */
	/* skip detach on non attached boards */
+2 −0
Original line number Original line Diff line number Diff line
@@ -1894,6 +1894,8 @@ static int em28xx_v4l2_fini(struct em28xx *dev)
		return 0;
		return 0;
	}
	}


	em28xx_info("Closing video extension");

	v4l2_device_disconnect(&dev->v4l2_dev);
	v4l2_device_disconnect(&dev->v4l2_dev);


	em28xx_uninit_usb_xfer(dev, EM28XX_ANALOG_MODE);
	em28xx_uninit_usb_xfer(dev, EM28XX_ANALOG_MODE);