Fix a goof on my part; s/struct moduledata */struct module */
This commit is contained in:
parent
481d658f1e
commit
2850fee53f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46591
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pci.c,v 1.95 1999/04/16 21:22:52 peter Exp $
|
||||
* $Id: pci.c,v 1.96 1999/04/24 19:59:20 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -928,7 +928,7 @@ static devclass_t pci_devclass;
|
||||
* Create a new style driver around each old pci driver.
|
||||
*/
|
||||
int
|
||||
compat_pci_handler(struct moduledata *mod, int type, void *data)
|
||||
compat_pci_handler(module_t mod, int type, void *data)
|
||||
{
|
||||
struct pci_device *dvp = (struct pci_device *)data;
|
||||
driver_t *driver;
|
||||
@ -947,7 +947,7 @@ compat_pci_handler(struct moduledata *mod, int type, void *data)
|
||||
devclass_add_driver(pci_devclass, driver);
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
printf("%s: module unload not supported!\n", mod->name);
|
||||
printf("%s: module unload not supported!\n", dvp->pd_name);
|
||||
return EOPNOTSUPP;
|
||||
default:
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcivar.h,v 1.27 1999/04/17 08:36:07 peter Exp $
|
||||
* $Id: pcivar.h,v 1.28 1999/04/24 19:59:20 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -299,8 +299,8 @@ int pci_map_int_right(pcici_t cfg, pci_inthand_t *handler, void *arg,
|
||||
intrmask_t *maskptr, u_int flags);
|
||||
int pci_unmap_int (pcici_t tag);
|
||||
|
||||
struct moduledata;
|
||||
int compat_pci_handler (struct moduledata *, int, void *);
|
||||
struct module;
|
||||
int compat_pci_handler (struct module *, int, void *);
|
||||
#define COMPAT_PCI_DRIVER(name, pcidata) \
|
||||
static moduledata_t name##_mod = { \
|
||||
#name, \
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pci.c,v 1.95 1999/04/16 21:22:52 peter Exp $
|
||||
* $Id: pci.c,v 1.96 1999/04/24 19:59:20 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -928,7 +928,7 @@ static devclass_t pci_devclass;
|
||||
* Create a new style driver around each old pci driver.
|
||||
*/
|
||||
int
|
||||
compat_pci_handler(struct moduledata *mod, int type, void *data)
|
||||
compat_pci_handler(module_t mod, int type, void *data)
|
||||
{
|
||||
struct pci_device *dvp = (struct pci_device *)data;
|
||||
driver_t *driver;
|
||||
@ -947,7 +947,7 @@ compat_pci_handler(struct moduledata *mod, int type, void *data)
|
||||
devclass_add_driver(pci_devclass, driver);
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
printf("%s: module unload not supported!\n", mod->name);
|
||||
printf("%s: module unload not supported!\n", dvp->pd_name);
|
||||
return EOPNOTSUPP;
|
||||
default:
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcivar.h,v 1.27 1999/04/17 08:36:07 peter Exp $
|
||||
* $Id: pcivar.h,v 1.28 1999/04/24 19:59:20 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -299,8 +299,8 @@ int pci_map_int_right(pcici_t cfg, pci_inthand_t *handler, void *arg,
|
||||
intrmask_t *maskptr, u_int flags);
|
||||
int pci_unmap_int (pcici_t tag);
|
||||
|
||||
struct moduledata;
|
||||
int compat_pci_handler (struct moduledata *, int, void *);
|
||||
struct module;
|
||||
int compat_pci_handler (struct module *, int, void *);
|
||||
#define COMPAT_PCI_DRIVER(name, pcidata) \
|
||||
static moduledata_t name##_mod = { \
|
||||
#name, \
|
||||
|
Loading…
Reference in New Issue
Block a user