diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-11 05:42:55 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-11 05:42:55 +0000 |
commit | f5cca0afd25a004ac93807a02a2dc9611c8724fa (patch) | |
tree | 650b8e3837cfe7d8bed5e1c62c361119c331c488 /sys/dev/usb/if_url.c | |
parent | 016fcdcb5e952ecbad9e2631f4b1413ab263f3e1 (diff) |
Remove the definition and usage of the USBGETSOFTC macro, which was really
only a cast to (void *).
ok jsg.
Diffstat (limited to 'sys/dev/usb/if_url.c')
-rw-r--r-- | sys/dev/usb/if_url.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index dcacb0d147a..95a45075f4a 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.44 2007/06/10 14:49:00 mbalmer Exp $ */ +/* $OpenBSD: if_url.c,v 1.45 2007/06/11 05:42:54 mbalmer Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -1411,7 +1411,7 @@ url_int_miibus_readreg(device_ptr_t dev, int phy, int reg) if (dev == NULL) return (0); - sc = USBGETSOFTC(dev); + sc = (void *)dev; DPRINTFN(0xff, ("%s: %s: enter, phy=%d reg=0x%04x\n", sc->sc_dev.dv_xname, __func__, phy, reg)); @@ -1483,7 +1483,7 @@ url_int_miibus_writereg(device_ptr_t dev, int phy, int reg, int data) if (dev == NULL) return; - sc = USBGETSOFTC(dev); + sc = (void *)dev; DPRINTFN(0xff, ("%s: %s: enter, phy=%d reg=0x%04x data=0x%04x\n", sc->sc_dev.dv_xname, __func__, phy, reg, data)); @@ -1551,7 +1551,7 @@ url_miibus_statchg(device_ptr_t dev) if (dev == NULL) return; - sc = USBGETSOFTC(dev); + sc = (void *)dev; DPRINTF(("%s: %s: enter\n", sc->sc_dev.dv_xname, __func__)); #endif /* Nothing to do */ @@ -1564,7 +1564,7 @@ url_miibus_statchg(device_ptr_t dev) int url_ext_miibus_redreg(device_ptr_t dev, int phy, int reg) { - struct url_softc *sc = USBGETSOFTC(dev); + struct url_softc *sc = (void *)dev; u_int16_t val; DPRINTF(("%s: %s: enter, phy=%d reg=0x%04x\n", @@ -1608,7 +1608,7 @@ url_ext_miibus_redreg(device_ptr_t dev, int phy, int reg) void url_ext_miibus_writereg(device_ptr_t dev, int phy, int reg, int data) { - struct url_softc *sc = USBGETSOFTC(dev); + struct url_softc *sc = (void *)dev; DPRINTF(("%s: %s: enter, phy=%d reg=0x%04x data=0x%04x\n", sc->sc_dev.dv_xname, __func__, phy, reg, data)); |