diff options
| author | Mark Brown <broonie@kernel.org> | 2020-12-28 17:20:00 +0300 | 
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2020-12-28 17:20:00 +0300 | 
| commit | 2ae6f64ce1ce304b502461fdfe0b96c8171ae2cc (patch) | |
| tree | 88e987c447daf2c29e2d4c15e58d1029b0cc78c2 /drivers/memory/renesas-rpc-if.c | |
| parent | 3b66e4a8e58a85af3212c7117d7a29c9ef6679a2 (diff) | |
| parent | 5c8fe583cce542aa0b84adc939ce85293de36e5e (diff) | |
| download | linux-2ae6f64ce1ce304b502461fdfe0b96c8171ae2cc.tar.xz | |
Merge tag 'v5.11-rc1' into regulator-5.11
Linux 5.11-rc1
Diffstat (limited to 'drivers/memory/renesas-rpc-if.c')
| -rw-r--r-- | drivers/memory/renesas-rpc-if.c | 18 | 
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c index f2a33a1af836..8d36e221def1 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -12,7 +12,6 @@  #include <linux/module.h>  #include <linux/platform_device.h>  #include <linux/of.h> -#include <linux/pm_runtime.h>  #include <linux/regmap.h>  #include <linux/reset.h> @@ -204,18 +203,6 @@ int rpcif_sw_init(struct rpcif *rpc, struct device *dev)  }  EXPORT_SYMBOL(rpcif_sw_init); -void rpcif_enable_rpm(struct rpcif *rpc) -{ -	pm_runtime_enable(rpc->dev); -} -EXPORT_SYMBOL(rpcif_enable_rpm); - -void rpcif_disable_rpm(struct rpcif *rpc) -{ -	pm_runtime_put_sync(rpc->dev); -} -EXPORT_SYMBOL(rpcif_disable_rpm); -  void rpcif_hw_init(struct rpcif *rpc, bool hyperflash)  {  	u32 dummy; @@ -508,7 +495,8 @@ exit:  	return ret;  err_out: -	ret = reset_control_reset(rpc->rstc); +	if (reset_control_reset(rpc->rstc)) +		dev_err(rpc->dev, "Failed to reset HW\n");  	rpcif_hw_init(rpc, rpc->bus_size == 2);  	goto exit;  } @@ -560,9 +548,11 @@ static int rpcif_probe(struct platform_device *pdev)  	} else if (of_device_is_compatible(flash, "cfi-flash")) {  		name = "rpc-if-hyperflash";  	} else	{ +		of_node_put(flash);  		dev_warn(&pdev->dev, "unknown flash type\n");  		return -ENODEV;  	} +	of_node_put(flash);  	vdev = platform_device_alloc(name, pdev->id);  	if (!vdev)  | 
