return( DDI_FAILURE );
}
+/* Solaris 10 removed DDI_IDENTIFIED and replaced "identify" with "nulldev" */
+#ifdef DDI_IDENTIFIED
static int
tpi_identify( dev_info_t *dip )
{
return( DDI_NOT_IDENTIFIED );
}
}
+#endif /* DDI_IDENTIFIED */
static int
tpi_attach( dev_info_t *dip, ddi_attach_cmd_t cmd )
}
cp = (struct copyresp *)m->b_rptr;
if ( cp->cp_rval != 0 ) {
- cmn_err( CE_CONT, "tpi_wput IOCDATA failed %d\n", cp->cp_rval );
+ cmn_err( CE_CONT, "tpi_wput IOCDATA failed %s\n", cp->cp_rval );
freemsg( m );
break;
}
DEVO_REV,
0,
tpi_getinfo,
+#ifdef DDI_IDENTIFIED
tpi_identify,
+#else
+ nulldev,
+#endif
nulldev,
tpi_attach,
tpi_detach,