Commit 69b14fde authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Greg Kroah-Hartman

driver core: fix up missed scsi/cxlflash class.devnode() conversion.

Fixes: ff62b8e6 ("driver core: make struct class.devnode() take a const *")
Link: https://lore.kernel.org/r/20221130123851.6a9f2242@canb.auug.org.auSigned-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb12940f
...@@ -3857,7 +3857,7 @@ static void cxlflash_pci_resume(struct pci_dev *pdev) ...@@ -3857,7 +3857,7 @@ static void cxlflash_pci_resume(struct pci_dev *pdev)
* *
* Return: Allocated string describing the devtmpfs structure. * Return: Allocated string describing the devtmpfs structure.
*/ */
static char *cxlflash_devnode(struct device *dev, umode_t *mode) static char *cxlflash_devnode(const struct device *dev, umode_t *mode)
{ {
return kasprintf(GFP_KERNEL, "cxlflash/%s", dev_name(dev)); return kasprintf(GFP_KERNEL, "cxlflash/%s", dev_name(dev));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment