lkml.org 
[lkml]   [2021]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] tpm_tis: Use DEFINE_RES_MEM() to simplify code
On Tue, Jun 01, 2021 at 02:45:07PM +0800, Zhen Lei wrote:
> No functional change.
>
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

No change, no need to apply?

/Jarkko

> ---
> drivers/char/tpm/tpm_tis.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 4ed6e660273a414..d3f2e5364c275f4 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -363,11 +363,7 @@ static int tpm_tis_force_device(void)
> {
> struct platform_device *pdev;
> static const struct resource x86_resources[] = {
> - {
> - .start = 0xFED40000,
> - .end = 0xFED40000 + TIS_MEM_LEN - 1,
> - .flags = IORESOURCE_MEM,
> - },
> + DEFINE_RES_MEM(0xFED40000, TIS_MEM_LEN)
> };
>
> if (!force)
> --
> 2.26.0.106.g9fadedd
>
>
>

\
 
 \ /
  Last update: 2021-06-01 19:57    [W:0.056 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site