From a95ce1f89081d939bd6f789f6544a68c67950935 Mon Sep 17 00:00:00 2001 From: Linyu Yuan Date: Mon, 21 Sep 2020 11:34:22 +0800 Subject: [PATCH] usb: misc: nb7vpq904m: remove panic operation it is an empty function. Change-Id: I6b34ea0280f30169e93c819d037c323dcf1f8bee Signed-off-by: Linyu Yuan --- drivers/usb/misc/ssusb-redriver-nb7vpq904m.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/usb/misc/ssusb-redriver-nb7vpq904m.c b/drivers/usb/misc/ssusb-redriver-nb7vpq904m.c index 09ccc8cef065..9d19e8bda576 100644 --- a/drivers/usb/misc/ssusb-redriver-nb7vpq904m.c +++ b/drivers/usb/misc/ssusb-redriver-nb7vpq904m.c @@ -101,7 +101,6 @@ struct ssusb_redriver { enum plug_orientation typec_orientation; enum operation_mode op_mode; - struct notifier_block panic_nb; struct notifier_block ucsi_nb; enum channel_mode chan_mode[CHANNEL_NUM]; @@ -551,17 +550,6 @@ static void ssusb_redriver_orientation_gpio_init( redriver->orientation_gpio_enable = true; } -static int ssusb_redriver_panic_notifier(struct notifier_block *this, - unsigned long event, void *ptr) -{ - struct ssusb_redriver *redriver = container_of(this, - struct ssusb_redriver, panic_nb); - - pr_err("%s: op mode: %d\n", __func__, redriver->op_mode); - - return NOTIFY_OK; -} - static const struct regmap_config redriver_regmap = { .max_register = REDRIVER_REG_MAX, .reg_bits = 8, @@ -602,10 +590,6 @@ static int redriver_i2c_probe(struct i2c_client *client, ssusb_redriver_orientation_gpio_init(redriver); - redriver->panic_nb.notifier_call = ssusb_redriver_panic_notifier; - atomic_notifier_chain_register(&panic_notifier_list, - &redriver->panic_nb); - redriver->ucsi_nb.notifier_call = ssusb_redriver_ucsi_notifier; register_ucsi_glink_notifier(&redriver->ucsi_nb); @@ -620,8 +604,6 @@ static int redriver_i2c_remove(struct i2c_client *client) debugfs_remove(redriver->debug_root); unregister_ucsi_glink_notifier(&redriver->ucsi_nb); - atomic_notifier_chain_unregister(&panic_notifier_list, - &redriver->panic_nb); return 0; }