[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2025100743-irk-democrat-2d4d@gregkh>
Date: Tue, 7 Oct 2025 14:43:52 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Madhur Kumar <madhurkumar004@...il.com>
Cc: mirq-linux@...e.qmqm.pl, arnd@...db.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] misc: cb710: Replace deprecated PCI functions
On Fri, Sep 19, 2025 at 02:02:14PM +0530, Madhur Kumar wrote:
> pcim_iomap_table() and pcim_iomap_regions() have been deprecated.
> Replace them with pcim_iomap_region().
>
> Signed-off-by: Madhur Kumar <madhurkumar004@...il.com>
> ---
> drivers/misc/cb710/core.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/misc/cb710/core.c b/drivers/misc/cb710/core.c
> index 55b7ee0e8f93..033e9e6d37db 100644
> --- a/drivers/misc/cb710/core.c
> +++ b/drivers/misc/cb710/core.c
> @@ -223,13 +223,12 @@ static int cb710_probe(struct pci_dev *pdev,
> if (err)
> return err;
>
> - err = pcim_iomap_regions(pdev, 0x0001, KBUILD_MODNAME);
> - if (err)
> - return err;
>
> spin_lock_init(&chip->irq_lock);
> chip->pdev = pdev;
> - chip->iobase = pcim_iomap_table(pdev)[0];
> + chip->iobase = pcim_iomap_region(pdev, 0, KBUILD_MODNAME);
> + if(!chip->iobase)
> + return -ENOMEM;
>
> pci_set_drvdata(pdev, chip);
>
> --
> 2.51.0
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- Your patch contains warnings and/or errors noticed by the
scripts/checkpatch.pl tool.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
Powered by blists - more mailing lists