From: James Bottomley Date: Tue, 14 Mar 2006 20:24:55 +0000 (-0600) Subject: [SCSI] add scsi_reprobe_device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e28482c5b24006e9e4a867f9995baf358cbc1059;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [SCSI] add scsi_reprobe_device Original from Christoph Hellwig and Eric Moore. This version exports the scsi_reprobe_device() function as an inline. Signed-off-by: James Bottomley --- diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 1ec17ee12815..f2193cd0d31f 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h @@ -293,6 +293,11 @@ extern int scsi_execute_async(struct scsi_device *sdev, void (*done)(void *, char *, int, int), gfp_t gfp); +static inline void scsi_device_reprobe(struct scsi_device *sdev) +{ + device_reprobe(&sdev->sdev_gendev); +} + static inline unsigned int sdev_channel(struct scsi_device *sdev) { return sdev->channel;