From: <aot...@us...> - 2004-10-19 09:52:24
|
Update of /cvsroot/gc-linux/linux/drivers/exi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10464/drivers/exi Modified Files: exi-driver.c Log Message: driver-model core already tests if a driver is bound to the device, and NULLifies dev->driver if so. Index: exi-driver.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/exi/exi-driver.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- exi-driver.c 24 May 2004 00:58:58 -0000 1.4 +++ exi-driver.c 19 Oct 2004 09:52:15 -0000 1.5 @@ -36,11 +36,8 @@ struct exi_dev *exi_dev = to_exi_dev(dev); struct exi_driver *drv = to_exi_driver(dev->driver); - if (drv) { - if (drv->remove) - drv->remove(exi_dev); - exi_dev->dev.driver = NULL; - } + if (drv->remove) + drv->remove(exi_dev); return 0; } |