diff options
author | Zach Kissel <Zachary.Kissel@Sun.COM> | 2009-08-07 17:54:27 -0400 |
---|---|---|
committer | Zach Kissel <Zachary.Kissel@Sun.COM> | 2009-08-07 17:54:27 -0400 |
commit | c98f7645b239622b7f69f2bc0b0830dacb78d5f9 (patch) | |
tree | b3338718e99dee5ca372634863de43c2e1891dae /usr/src | |
parent | c2b9b7a989a90fa6916f5e67b23b205fe9a04889 (diff) | |
download | illumos-joyent-c98f7645b239622b7f69f2bc0b0830dacb78d5f9.tar.gz |
6756476 bscv_reset() is obsolete
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/bscv.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/usr/src/uts/common/io/bscv.c b/usr/src/uts/common/io/bscv.c index 017c99461f..77de4d47b7 100644 --- a/usr/src/uts/common/io/bscv.c +++ b/usr/src/uts/common/io/bscv.c @@ -82,7 +82,6 @@ static void *bscv_statep = NULL; 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 @@ static struct dev_ops bscv_dev_ops = { 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 @@ bscv_detach(dev_info_t *dip, ddi_detach_cmd_t cmd) } /* - * 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 |