/* Publishes a SAS PHY to the rest of the system.  */
int sas_phy_add(struct sas_phy *phy)
/* Publishes a SAS PHY to the rest of the system.  */
int sas_phy_add(struct sas_phy *phy)
{
	int error;
	error = device_add(&phy->dev);
	if (!error) {
		transport_add_device(&phy->dev);
		transport_configure_device(&phy->dev);
	}
	return error;
}