Skip to content

Commit 4d287d8

Browse files
John Garrymartinkpetersen
authored andcommitted
scsi: hisi_sas: Remove deferred probe check in hisi_sas_v2_probe()
The platform_get_irq() check for -EPROBE_DEFER was to ensure that all the steps to add the SCSI host are not done and then only to realise that the probe needs to be deferred. However, since there is now an earlier check for this in hisi_sas_interrupt_preinit(), this check is superfluous and may be removed. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: John Garry <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent fad0a16 commit 4d287d8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/scsi/hisi_sas/hisi_sas_v2_hw.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3627,18 +3627,6 @@ static const struct hisi_sas_hw hisi_sas_v2_hw = {
36273627

36283628
static int hisi_sas_v2_probe(struct platform_device *pdev)
36293629
{
3630-
/*
3631-
* Check if we should defer the probe before we probe the
3632-
* upper layer, as it's hard to defer later on.
3633-
*/
3634-
int ret = platform_get_irq(pdev, 0);
3635-
3636-
if (ret < 0) {
3637-
if (ret != -EPROBE_DEFER)
3638-
dev_err(&pdev->dev, "cannot obtain irq\n");
3639-
return ret;
3640-
}
3641-
36423630
return hisi_sas_probe(pdev, &hisi_sas_v2_hw);
36433631
}
36443632

0 commit comments

Comments
 (0)