Mercurial > illumos > illumos-gate
changeset 10280:e555027c59d1
6756476 bscv_reset() is obsolete
author | Zach Kissel <Zachary.Kissel@Sun.COM> |
---|---|
date | Fri, 07 Aug 2009 17:54:27 -0400 |
parents | 73b1c2ddbfad |
children | 422e069d2f7f |
files | usr/src/uts/common/io/bscv.c |
diffstat | 1 files changed, 1 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/bscv.c Fri Aug 07 13:07:27 2009 -0700 +++ b/usr/src/uts/common/io/bscv.c Fri Aug 07 17:54:27 2009 -0400 @@ -82,7 +82,6 @@ static int bscv_getinfo(dev_info_t *, ddi_info_cmd_t, void *, void **); static int bscv_attach(dev_info_t *, ddi_attach_cmd_t); static int bscv_detach(dev_info_t *, ddi_detach_cmd_t); -static int bscv_reset(dev_info_t *, ddi_reset_cmd_t); static int bscv_quiesce(dev_info_t *); static int bscv_map_regs(bscv_soft_state_t *); static void bscv_unmap_regs(bscv_soft_state_t *); @@ -370,7 +369,7 @@ nulldev, /* devo_probe */ bscv_attach, /* devo_attach */ bscv_detach, /* devo_detach */ - bscv_reset, /* devo_reset */ + nodev, /* devo_reset */ &bscv_cb_ops, /* devo_cb_ops */ (struct bus_ops *)0, /* devo_bus_ops */ NULL, /* devo_power */ @@ -754,25 +753,6 @@ } /* - * function - bscv_reset - * description - routine that implements the obsolete devo_reset entry point. - * MAN page declares that devo_quiesce subsumes devo_reset - * functionality. - * inputs - device information structure, DDI_RESET command - * outputs - DDI_SUCCESS or DDI_FAILURE - */ -static int -bscv_reset(dev_info_t *dip, ddi_reset_cmd_t cmd) -{ - switch (cmd) { - case DDI_RESET_FORCE: - return (bscv_quiesce(dip)); - default: - return (DDI_FAILURE); - } -} - -/* * quiesce(9E) entry point. * * This function is called when the system is single-threaded at high