File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -3421,25 +3421,23 @@ static bool amd_iommu_sme_check(void)
3421
3421
* IOMMUs
3422
3422
*
3423
3423
****************************************************************************/
3424
- int __init amd_iommu_detect (void )
3424
+ void __init amd_iommu_detect (void )
3425
3425
{
3426
3426
int ret ;
3427
3427
3428
3428
if (no_iommu || (iommu_detected && !gart_iommu_aperture ))
3429
- return - ENODEV ;
3429
+ return ;
3430
3430
3431
3431
if (!amd_iommu_sme_check ())
3432
- return - ENODEV ;
3432
+ return ;
3433
3433
3434
3434
ret = iommu_go_to_state (IOMMU_IVRS_DETECTED );
3435
3435
if (ret )
3436
- return ret ;
3436
+ return ;
3437
3437
3438
3438
amd_iommu_detected = true;
3439
3439
iommu_detected = 1 ;
3440
3440
x86_init .iommu .iommu_init = amd_iommu_init ;
3441
-
3442
- return 1 ;
3443
3441
}
3444
3442
3445
3443
/****************************************************************************
Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ struct amd_iommu_pi_data {
31
31
struct task_struct ;
32
32
struct pci_dev ;
33
33
34
- extern int amd_iommu_detect (void );
34
+ extern void amd_iommu_detect (void );
35
35
36
36
#else /* CONFIG_AMD_IOMMU */
37
37
38
- static inline int amd_iommu_detect (void ) { return - ENODEV ; }
38
+ static inline void amd_iommu_detect (void ) { }
39
39
40
40
#endif /* CONFIG_AMD_IOMMU */
41
41
You can’t perform that action at this time.
0 commit comments