[PATCH 2/2] ram: stm32mp1: remove __maybe_unused on stm32mp1_ddr_setup

Patrice CHOTARD patrice.chotard at foss.st.com
Tue Nov 30 11:02:50 CET 2021


Hi Patrick

On 11/24/21 10:52 AM, Patrick Delaunay wrote:
> Since the commit f42045b2e750 ("stm32mp15: replace CONFIG_TFABOOT when
> it is possible") the function stm32mp1_ddr_setup is always called so the
> __maybe_unused can be removed.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> 
>  drivers/ram/stm32mp1/stm32mp1_ram.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c
> index c9335e59df..43702f3576 100644
> --- a/drivers/ram/stm32mp1/stm32mp1_ram.c
> +++ b/drivers/ram/stm32mp1/stm32mp1_ram.c
> @@ -88,7 +88,7 @@ static ofnode stm32mp1_ddr_get_ofnode(struct udevice *dev)
>  	return dev_ofnode(dev);
>  }
>  
> -static __maybe_unused int stm32mp1_ddr_setup(struct udevice *dev)
> +static int stm32mp1_ddr_setup(struct udevice *dev)
>  {
>  	struct ddr_info *priv = dev_get_priv(dev);
>  	int ret;
> 


Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Thanks
Patrice


More information about the U-Boot mailing list