diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-06-10 10:20:36 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-06-10 17:15:16 +0200 |
commit | df6c2646d0e459ea6aa1d2caff683cc75df63b31 (patch) | |
tree | 821cc1a1c472cfba9a7e387dc66b25eedc9dd6d0 /drivers/memory/pl353-smc.c | |
parent | 9d7bb4493acfb7a131230e7785e7416de50b28b6 (diff) | |
download | linux-df6c2646d0e459ea6aa1d2caff683cc75df63b31.tar.gz linux-df6c2646d0e459ea6aa1d2caff683cc75df63b31.tar.bz2 linux-df6c2646d0e459ea6aa1d2caff683cc75df63b31.zip |
memory: pl353-smc: Declare variables following a reverse christmas tree order
This is a purely cosmetic change.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20210610082040.2075611-15-miquel.raynal@bootlin.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Diffstat (limited to 'drivers/memory/pl353-smc.c')
-rw-r--r-- | drivers/memory/pl353-smc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/memory/pl353-smc.c b/drivers/memory/pl353-smc.c index b913d68a7a41..925d856663ac 100644 --- a/drivers/memory/pl353-smc.c +++ b/drivers/memory/pl353-smc.c @@ -36,8 +36,8 @@ static int __maybe_unused pl353_smc_suspend(struct device *dev) static int __maybe_unused pl353_smc_resume(struct device *dev) { - int ret; struct pl353_smc_data *pl353_smc = dev_get_drvdata(dev); + int ret; ret = clk_enable(pl353_smc->aclk); if (ret) { @@ -70,11 +70,11 @@ static const struct of_device_id pl353_smc_supported_children[] = { static int pl353_smc_probe(struct amba_device *adev, const struct amba_id *id) { + struct device_node *of_node = adev->dev.of_node; + const struct of_device_id *match = NULL; struct pl353_smc_data *pl353_smc; struct device_node *child; int err; - struct device_node *of_node = adev->dev.of_node; - const struct of_device_id *match = NULL; pl353_smc = devm_kzalloc(&adev->dev, sizeof(*pl353_smc), GFP_KERNEL); if (!pl353_smc) |