scsi: libsas: Remove notifier indirection
[linux-2.6-microblaze.git] / drivers / scsi / pm8001 / pm8001_sas.c
index f8d142f..6af561a 100644 (file)
@@ -158,7 +158,6 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
        int rc = 0, phy_id = sas_phy->id;
        struct pm8001_hba_info *pm8001_ha = NULL;
        struct sas_phy_linkrates *rates;
-       struct sas_ha_struct *sas_ha;
        struct pm8001_phy *phy;
        DECLARE_COMPLETION_ONSTACK(completion);
        unsigned long flags;
@@ -207,18 +206,16 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func,
                if (pm8001_ha->chip_id != chip_8001) {
                        if (pm8001_ha->phy[phy_id].phy_state ==
                                PHY_STATE_LINK_UP_SPCV) {
-                               sas_ha = pm8001_ha->sas;
                                sas_phy_disconnected(&phy->sas_phy);
-                               sas_ha->notify_phy_event(&phy->sas_phy,
+                               sas_notify_phy_event(&phy->sas_phy,
                                        PHYE_LOSS_OF_SIGNAL);
                                phy->phy_attached = 0;
                        }
                } else {
                        if (pm8001_ha->phy[phy_id].phy_state ==
                                PHY_STATE_LINK_UP_SPC) {
-                               sas_ha = pm8001_ha->sas;
                                sas_phy_disconnected(&phy->sas_phy);
-                               sas_ha->notify_phy_event(&phy->sas_phy,
+                               sas_notify_phy_event(&phy->sas_phy,
                                        PHYE_LOSS_OF_SIGNAL);
                                phy->phy_attached = 0;
                        }