66 * GPL LICENSE SUMMARY
77 *
88 * Copyright(c) 2017 Intel Deutschland GmbH
9- * Copyright (C) 2019 Intel Corporation
9+ * Copyright (C) 2019 - 2020 Intel Corporation
1010 *
1111 * This program is free software; you can redistribute it and/or modify
1212 * it under the terms of version 2 of the GNU General Public License as
2727 * BSD LICENSE
2828 *
2929 * Copyright(c) 2017 Intel Deutschland GmbH
30- * Copyright (C) 2019 Intel Corporation
30+ * Copyright (C) 2019 - 2020 Intel Corporation
3131 * All rights reserved.
3232 *
3333 * Redistribution and use in source and binary forms, with or without
@@ -491,21 +491,21 @@ int iwl_validate_sar_geo_profile(struct iwl_fw_runtime *fwrt,
491491}
492492IWL_EXPORT_SYMBOL (iwl_validate_sar_geo_profile );
493493
494- void iwl_sar_geo_init (struct iwl_fw_runtime * fwrt ,
495- struct iwl_per_chain_offset_group * table )
494+ int iwl_sar_geo_init (struct iwl_fw_runtime * fwrt ,
495+ struct iwl_per_chain_offset_group * table )
496496{
497497 int ret , i , j ;
498498
499499 if (!iwl_sar_geo_support (fwrt ))
500- return ;
500+ return - EOPNOTSUPP ;
501501
502502 ret = iwl_sar_get_wgds_table (fwrt );
503503 if (ret < 0 ) {
504504 IWL_DEBUG_RADIO (fwrt ,
505505 "Geo SAR BIOS table invalid or unavailable. (%d)\n" ,
506506 ret );
507507 /* we don't fail if the table is not available */
508- return ;
508+ return - ENOENT ;
509509 }
510510
511511 BUILD_BUG_ON (ACPI_NUM_GEO_PROFILES * ACPI_WGDS_NUM_BANDS *
@@ -530,5 +530,7 @@ void iwl_sar_geo_init(struct iwl_fw_runtime *fwrt,
530530 i , j , value [1 ], value [2 ], value [0 ]);
531531 }
532532 }
533+
534+ return 0 ;
533535}
534536IWL_EXPORT_SYMBOL (iwl_sar_geo_init );
0 commit comments