summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu.Beznea@microchip.com <Claudiu.Beznea@microchip.com>2020-01-21 10:03:30 +0000
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-03-08 19:37:15 +0100
commitf9e6ce74cbf2a34f4d37bccbbfc7865e5b3e01dd (patch)
tree81a8eb554ef6d767e4c3c603c9c153ce4de38761
parent4d9ce0f56aeeb46c8be0e8974646f163d3f6b72d (diff)
power: reset: at91-reset: add sclk to struct at91_reset
Add sclk to struct at91_reset. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r--drivers/power/reset/at91-reset.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c
index 999d3a1653d2..1bc39bfda0aa 100644
--- a/drivers/power/reset/at91-reset.c
+++ b/drivers/power/reset/at91-reset.c
@@ -52,12 +52,11 @@ enum reset_type {
struct at91_reset {
void __iomem *rstc_base;
void __iomem *ramc_base[2];
+ struct clk *sclk;
};
static struct at91_reset reset;
-static struct clk *sclk;
-
/*
* unless the SDRAM is cleanly shutdown before we hit the
* reset register it can be left driving the data bus and
@@ -238,11 +237,11 @@ static int __init at91_reset_probe(struct platform_device *pdev)
match = of_match_node(at91_reset_of_match, pdev->dev.of_node);
at91_restart_nb.notifier_call = match->data;
- sclk = devm_clk_get(&pdev->dev, NULL);
- if (IS_ERR(sclk))
- return PTR_ERR(sclk);
+ reset.sclk = devm_clk_get(&pdev->dev, NULL);
+ if (IS_ERR(reset.sclk))
+ return PTR_ERR(reset.sclk);
- ret = clk_prepare_enable(sclk);
+ ret = clk_prepare_enable(reset.sclk);
if (ret) {
dev_err(&pdev->dev, "Could not enable slow clock\n");
return ret;
@@ -250,7 +249,7 @@ static int __init at91_reset_probe(struct platform_device *pdev)
ret = register_restart_handler(&at91_restart_nb);
if (ret) {
- clk_disable_unprepare(sclk);
+ clk_disable_unprepare(reset.sclk);
return ret;
}
@@ -262,7 +261,7 @@ static int __init at91_reset_probe(struct platform_device *pdev)
static int __exit at91_reset_remove(struct platform_device *pdev)
{
unregister_restart_handler(&at91_restart_nb);
- clk_disable_unprepare(sclk);
+ clk_disable_unprepare(reset.sclk);
return 0;
}
6ee9d68f874959fa028388efa26f495f63'>[SCSI] be2iscsi: Format the MAC_ADDR with sysfs_format_mac.John Soni Jose 2012-09-14[SCSI] be2iscsi: Added Logging mechanism for the driver.John Soni Jose 2012-04-25[SCSI] be2iscsi: Get Port State and Speed of the AdapterJohn Soni Jose 2012-04-25[SCSI] be2iscsi: adding functionality to change network settings using iscsiadmMike Christie 2012-04-25[SCSI] be2iscsi: Get Initiator Name for the iSCSI_HostJohn Soni Jose 2012-04-25[SCSI] be2iscsi: Fix typo function name mismatchJayamohan Kallickal 2012-01-03switch ->is_visible() to returning umode_tAl Viro 2011-08-27[SCSI] be2iscsi: remove host and session castsMike Christie 2011-08-27[SCSI] iscsi class: sysfs group is_visible callout for iscsi host attrsMike Christie 2011-08-27[SCSI] iscsi class: sysfs group is_visible callout for session attrsMike Christie 2011-08-27[SCSI] iscsi cls: sysfs group is_visible callout for conn attrsMike Christie 2011-04-15[SCSI] be2iscsi: change in copyright noticeJayamohan Kallickal 2011-02-24[SCSI] be2iscsi: fix null ptr ref in conn get paramMike Christie