Don't clobber the smb cdevsw entry that was installed by the driver
framework.
This commit is contained in:
parent
8bd48ca8d4
commit
0d50adcacf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48637
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: smb.c,v 1.13 1999/05/31 11:25:05 phk Exp $
|
||||
* $Id: smb.c,v 1.14 1999/07/04 14:58:21 phk Exp $
|
||||
*
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
@ -122,10 +122,6 @@ static int
|
||||
smb_probe(device_t dev)
|
||||
{
|
||||
struct smb_softc *sc = (struct smb_softc *)device_get_softc(dev);
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&smb_cdevsw);
|
||||
|
||||
sc->sc_addr = smbus_get_addr(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user