X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=drivers%2Freset%2Fsti-reset.c;h=2cca67dc52afef8546ff8db29ad5dfcc7dc3c733;hb=5a1a8a63be8f7262a300eddafb18020926b12fb6;hp=0fc5a288026f204086a9cd6d2b30ef1370990b67;hpb=48263504c8d501678acaa90c075f3f7cda17c316;p=platform%2Fkernel%2Fu-boot.git diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c index 0fc5a28..2cca67d 100644 --- a/drivers/reset/sti-reset.c +++ b/drivers/reset/sti-reset.c @@ -1,18 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017, STMicroelectronics - All Rights Reserved - * Author(s): Patrice Chotard, for STMicroelectronics. - * - * SPDX-License-Identifier: GPL-2.0+ + * Author(s): Patrice Chotard, for STMicroelectronics. */ #include #include +#include +#include #include #include #include #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -218,7 +220,7 @@ phys_addr_t sti_reset_get_regmap(const char *compatible) return -ENODEV; } - return regmap->base; + return regmap->ranges[0].start; } static int sti_reset_program_hw(struct reset_ctl *reset_ctl, int assert) @@ -299,7 +301,7 @@ static int sti_reset_deassert(struct reset_ctl *reset_ctl) struct reset_ops sti_reset_ops = { .request = sti_reset_request, - .free = sti_reset_free, + .rfree = sti_reset_free, .rst_assert = sti_reset_assert, .rst_deassert = sti_reset_deassert, };