diff options
author | cth <none@none> | 2005-09-08 15:58:16 -0700 |
---|---|---|
committer | cth <none@none> | 2005-09-08 15:58:16 -0700 |
commit | a3282898e99eb4fd1912bf791254452bfd913d4b (patch) | |
tree | d6d270f787de345c075400b8d7ad25291eea7181 /usr/src/uts/sun4/io/ebus.c | |
parent | 1ac69ea687cc5094a956b1eb0a67df515029be6f (diff) | |
download | illumos-gate-a3282898e99eb4fd1912bf791254452bfd913d4b.tar.gz |
6305388 ddi_getlongprop(9F) callers should use DDI_DEV_T_ANY instead of DDI_DEV_T_NONE
Diffstat (limited to 'usr/src/uts/sun4/io/ebus.c')
-rw-r--r-- | usr/src/uts/sun4/io/ebus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/sun4/io/ebus.c b/usr/src/uts/sun4/io/ebus.c index 5a9e230884..42630f1f48 100644 --- a/usr/src/uts/sun4/io/ebus.c +++ b/usr/src/uts/sun4/io/ebus.c @@ -90,7 +90,7 @@ static int febus_apply_range(ebus_devstate_t *ebus_p, dev_info_t *rdip, int get_ranges_prop(ebus_devstate_t *ebus_p); #define getprop(dip, name, addr, intp) \ - ddi_getlongprop(DDI_DEV_T_NONE, (dip), DDI_PROP_DONTPASS, \ + ddi_getlongprop(DDI_DEV_T_ANY, (dip), DDI_PROP_DONTPASS, \ (name), (caddr_t)(addr), (intp)) static int ebus_open(dev_t *devp, int flags, int otyp, cred_t *credp); @@ -784,7 +784,7 @@ ebus_name_child(dev_info_t *child, char *name, int namelen) * Get the address portion of the node name based on the * address/offset. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&ebus_rp, ®len) != DDI_SUCCESS) { return (DDI_FAILURE); } @@ -970,7 +970,7 @@ ebus_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, } } - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "device_type", (caddr_t)&device_type_p, &len) == DDI_SUCCESS) { max_device_types = sizeof (ebus_device_type_to_pil) / |