瀏覽代碼

phy: ti: j721e-wiz: Fix build warning

Variable "reg" is not used, remove it.

Fixes: fa06d29814d0 ("phy: ti: j721e-wiz: Manage typec-gpio-dir")
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Roger Quadros 6 年之前
父節點
當前提交
d6f81d5b5b
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/phy/ti/phy-j721e-wiz.c

+ 0 - 2
drivers/phy/ti/phy-j721e-wiz.c

@@ -689,8 +689,6 @@ static int wiz_phy_reset_deassert(struct reset_controller_dev *rcdev,
 
 	/* if typec-dir gpio was specified, set LN10 SWAP bit based on that */
 	if (id == 0 && wiz->gpio_typec_dir) {
-		u32 reg;
-
 		if (gpiod_get_value_cansleep(wiz->gpio_typec_dir)) {
 			regmap_update_bits(wiz->regmap, WIZ_SERDES_TYPEC,
 					   WIZ_SERDES_TYPEC_LN10_SWAP,