/* For STP and direct-attached SATA Port Multipliers we need one target port DDB entry and one SATA PM table DDB entry.  */
static int asd_init_sata_pm_ddb(struct domain_device *dev)
/* For STP and direct-attached SATA Port Multipliers we need one target port DDB entry and one SATA PM table DDB entry.  */
static int asd_init_sata_pm_ddb(struct domain_device *dev)
{
	int res = 0;
	res = asd_init_target_ddb(dev);
	if (res)
		goto out;
	res = asd_init_sata_pm_table_ddb(dev);
	if (res)
		asd_free_ddb(dev->port->ha->lldd_ha,
			     (int) (unsigned long) dev->lldd_dev);
out:
	return res;
}