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@intel.com>2021-07-14 20:05:11 +0300
commit99258de7b430735344e0c9723931a866ee65370e (patch)
tree65400366599b67b185acb7affa3790e2511c76fe
parent66e151ee11378931543fa49bb2012b511f21a8a4 (diff)
downloadlinux-99258de7b430735344e0c9723931a866ee65370e.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;