[PATCH] libata: separate out __ata_ehi_hotplugged()

Separate out __ata_ehi_hotplugged() from ata_ehi_hotplugged(). The
underscored version doesn't set AC_ERR_ATA_BUS. This will be used for
resume which is a hotplug event but not an ATA bus error.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Tejun Heo and committed by Jeff Garzik c0b6c037 1cdaf534

+7 -2
+7 -2
include/linux/libata.h
··· 843 843 (ehi)->desc_len = 0; \ 844 844 } while (0) 845 845 846 - static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi) 846 + static inline void __ata_ehi_hotplugged(struct ata_eh_info *ehi) 847 847 { 848 848 if (ehi->flags & ATA_EHI_HOTPLUGGED) 849 849 return; ··· 851 851 ehi->flags |= ATA_EHI_HOTPLUGGED | ATA_EHI_RESUME_LINK; 852 852 ehi->hotplug_timestamp = jiffies; 853 853 854 - ehi->err_mask |= AC_ERR_ATA_BUS; 855 854 ehi->action |= ATA_EH_SOFTRESET; 856 855 ehi->probe_mask |= (1 << ATA_MAX_DEVICES) - 1; 856 + } 857 + 858 + static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi) 859 + { 860 + __ata_ehi_hotplugged(ehi); 861 + ehi->err_mask |= AC_ERR_ATA_BUS; 857 862 } 858 863 859 864 /*