Hi all,
    I was going through platform_driver structure of "sl811-hcd.c". The
defined structure is given below.
 
struct platform_driver sl811h_driver = {
 .probe = sl811h_probe,
 .remove = __devexit_p(sl811h_remove),
 
 .suspend = sl811h_suspend,
 .resume = sl811h_resume,
 .driver = {
  .name = (char *) hcd_name,
  .owner = THIS_MODULE,
 },
};


In remove entry point they have used a macro __devexit_p(). What does
actually this signify?
Again they have defined the function in the way given below.

static int __devexit
sl811h_remove(struct platform_device *dev){}

Here they have used __devexit. Is it that this is necessary because they
have used __devexit_p() macro in remove entry point ?

Is it required to use __devexit_p() macro ? If we do not use this then
will it cause any problem ?

Please suggest.

Thanks and regards,
Rasmit Ranjan Swain.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to