linux/drivers/media/usb
Mauro Carvalho Chehab b9bc7d59b7 [media] dib8000: rename dib8000_attach to dib8000_init
Well, what we call as "foo_attach" is the method that should
be called by the dvb_attach() macro.

It should be noticed that the name "dvb_attach" is really a
bad name and don't express what it does.

dvb_attach() basically does three things, if the frontend is
compiled as a module:
- It lookups for the module that it is known to have the
  given symbol name and requests such module;
- It increments the module usage (anonymously - so lsmod
  doesn't print who loaded the module);
- after loading the module, it runs the function associated
  with the dynamic symbol.

When compiled as builtin, it just calls the function given to it.

As dvb_attach() increments refcount, it can't be (easily)
called more than once for the same module, or the kernel
will deny to remove the module, because refcount will never
be zeroed.

In other words, the function name given to dvb_attach()
should be one single symbol that will always be called
before any other function on that module to be used.

For almost all DVB frontends, there's just one function,
but, on dib8000, there are several exported symbols.

We need to get rid of all those direct calls, because they
cause compilation breakages when bridge is builtin and
frontend is module, we'll need to add a new function that
will be the first one to be called, whatever initialization
is needed.

So, let's rename this function, in order to prepare for
a next patch that will add a new attach() function that
will be the only one exported by this module.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-06-17 12:04:49 -03:00
..
au0828 [media] au0828-dvb: restore its permission to 644 2014-06-04 15:19:36 -03:00
b2c2 [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c 2013-10-17 11:26:41 -03:00
cpia2 [media] media: Change variable type to bool 2013-10-17 11:24:35 -03:00
cx231xx [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
dvb-usb [media] dib8000: rename dib8000_attach to dib8000_init 2014-06-17 12:04:49 -03:00
dvb-usb-v2 [media] lmedm04: rs2000 check if interrupt urb is over due 2014-06-17 12:04:47 -03:00
em28xx [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
gspca [media] media:gspca:dtcs033 Clean sparse check warnings on endianess 2014-04-23 10:07:52 -03:00
hdpvr [media] hdpvr: Fix memory leak in debug 2014-02-04 06:43:53 -02:00
pvrusb2 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
pwc [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
s2255 [media] s2255drv: fix memory leak s2255_probe() 2014-05-23 12:19:42 -03:00
siano [media] Siano: smsusb - Add a device id for PX-S1UD 2014-03-11 12:12:53 -03:00
stk1160 [media] media: stk1160: Avoid stack-allocated buffer for control URBs 2014-05-24 17:12:11 -03:00
stkwebcam [media] Add HCL T12Rg-H to STK webcam upside-down table 2013-09-26 07:15:49 -03:00
tlg2300 [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
tm6000 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
ttusb-budget [media] ttusb-budget: fix memory leak in ttusb_probe() 2013-06-21 15:06:51 -03:00
ttusb-dec [media] dvb-usb: fix error handling in ttusb_dec_probe() 2013-10-03 07:33:59 -03:00
usbtv [media] usbtv: fix leak at failure path in usbtv_probe() 2014-06-17 12:04:46 -03:00
usbvision [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
uvc [media] uvcvideo: Fix clock param realtime setting 2014-05-23 11:27:37 -03:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig [media] sn9c102: prepare for removal by moving it to staging 2013-12-20 13:41:36 -02:00
Makefile [media] sn9c102: prepare for removal by moving it to staging 2013-12-20 13:41:36 -02:00