summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Wachowski <karol.wachowski@intel.com>2021-02-04 11:24:13 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-10-20 01:10:37 +0300
commit94ad36d2a181c96c18f7a9838f67343a3e51dee5 (patch)
tree6d60fcaa76e1ddb77c41386f3d54db7ec7ed85aa
parentda2bdb3fe3d98743c059a5ac8d4efeff3ef1403c (diff)
downloadlinux-94ad36d2a181c96c18f7a9838f67343a3e51dee5.tar.xz
peci: mctp: Enable PECI over MCTP
Remove modparam to enable peci-mctp probe and enable it by default. Tested: Verified that peci-mctp driver probes correctly: peci peci-1: cdev of adapter [peci-mctp] registered as minor 1 Manually verified that applications using PECI work correctly. Signed-off-by: Karol Wachowski <karol.wachowski@intel.com>
-rw-r--r--drivers/peci/busses/peci-mctp.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/peci/busses/peci-mctp.c b/drivers/peci/busses/peci-mctp.c
index 97c4bcb7d3e6..ac22e4e40049 100644
--- a/drivers/peci/busses/peci-mctp.c
+++ b/drivers/peci/busses/peci-mctp.c
@@ -7,10 +7,6 @@
#include <linux/peci.h>
#include <linux/platform_device.h>
-static bool enable_probe;
-module_param_named(enable, enable_probe, bool, 0644);
-MODULE_PARM_DESC(enable, "Enable peci-mctp device (default: false)");
-
#define PCIE_SET_DATA_LEN(x, val) ((x)->len_lo |= (val))
#define PCIE_SET_TARGET_ID(x, val) ((x)->target |= (swab16(val)))
#define PCIE_PKT_ALIGN(x) ALIGN(x, sizeof(u32))
@@ -352,12 +348,6 @@ static int mctp_peci_probe(struct platform_device *pdev)
struct mctp_peci *priv;
int ret;
- if (!enable_probe) {
- dev_info(&pdev->dev,
- "peci-mctp is disabled - use peci-mctp.enable=1 to enable it\n");
- return 0;
- }
-
adapter = peci_alloc_adapter(&pdev->dev, sizeof(*priv));
if (!adapter)
return -ENOMEM;