Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[sfrench/cifs-2.6.git] / drivers / scsi / libsas / sas_internal.h
index 3804aef165adb20a75b269e9089060259704e8eb..85948963fb97aa55792a1b127aa08fddfd8f66f9 100644 (file)
@@ -189,21 +189,6 @@ static inline void sas_phy_set_target(struct asd_sas_phy *p, struct domain_devic
        }
 }
 
-static inline void sas_add_parent_port(struct domain_device *dev, int phy_id)
-{
-       struct expander_device *ex = &dev->ex_dev;
-       struct ex_phy *ex_phy = &ex->ex_phy[phy_id];
-
-       if (!ex->parent_port) {
-               ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id);
-               /* FIXME: error handling */
-               BUG_ON(!ex->parent_port);
-               BUG_ON(sas_port_add(ex->parent_port));
-               sas_port_mark_backlink(ex->parent_port);
-       }
-       sas_port_add_phy(ex->parent_port, ex_phy->phy);
-}
-
 static inline struct domain_device *sas_alloc_device(void)
 {
        struct domain_device *dev = kzalloc(sizeof(*dev), GFP_KERNEL);