hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/misc/mei/hw-txe.c
....@@ -1,17 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
2
- *
3
+ * Copyright (c) 2013-2020, Intel Corporation. All rights reserved.
34 * Intel Management Engine Interface (Intel MEI) Linux driver
4
- * Copyright (c) 2013-2014, Intel Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
155 */
166
177 #include <linux/pci.h>
....@@ -670,14 +660,16 @@
670660 }
671661
672662 /**
673
- * mei_txe_hw_config - configure hardware at the start of the devices
663
+ * mei_txe_hw_config - configure hardware at the start of the devices
674664 *
675665 * @dev: the device structure
676666 *
677667 * Configure hardware at the start of the device should be done only
678668 * once at the device probe time
669
+ *
670
+ * Return: always 0
679671 */
680
-static void mei_txe_hw_config(struct mei_device *dev)
672
+static int mei_txe_hw_config(struct mei_device *dev)
681673 {
682674
683675 struct mei_txe_hw *hw = to_txe_hw(dev);
....@@ -687,6 +679,8 @@
687679
688680 dev_dbg(dev->dev, "aliveness_resp = 0x%08x, readiness = 0x%08x.\n",
689681 hw->aliveness, hw->readiness);
682
+
683
+ return 0;
690684 }
691685
692686 /**
....@@ -1207,8 +1201,7 @@
12071201 struct mei_device *dev;
12081202 struct mei_txe_hw *hw;
12091203
1210
- dev = devm_kzalloc(&pdev->dev, sizeof(struct mei_device) +
1211
- sizeof(struct mei_txe_hw), GFP_KERNEL);
1204
+ dev = devm_kzalloc(&pdev->dev, sizeof(*dev) + sizeof(*hw), GFP_KERNEL);
12121205 if (!dev)
12131206 return NULL;
12141207