From: Krzysztof Kozlowski Date: Fri, 30 Jul 2021 14:41:56 +0000 (+0200) Subject: nfc: mrvl: correct nfcmrvl_spi_parse_dt() device_node argument X-Git-Tag: v5.15-rc1~157^2~350^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3833b87408e5722e0b43b9b73f58d17db47a4c98;p=thirdparty%2Fkernel%2Flinux.git nfc: mrvl: correct nfcmrvl_spi_parse_dt() device_node argument The device_node in nfcmrvl_spi_parse_dt() cannot be const as it is passed to OF functions which modify it. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Jakub Kicinski --- diff --git a/drivers/nfc/nfcmrvl/spi.c b/drivers/nfc/nfcmrvl/spi.c index d64abd0c4df36..b182ab2e03c0a 100644 --- a/drivers/nfc/nfcmrvl/spi.c +++ b/drivers/nfc/nfcmrvl/spi.c @@ -106,7 +106,7 @@ static const struct nfcmrvl_if_ops spi_ops = { .nci_update_config = nfcmrvl_spi_nci_update_config, }; -static int nfcmrvl_spi_parse_dt(const struct device_node *node, +static int nfcmrvl_spi_parse_dt(struct device_node *node, struct nfcmrvl_platform_data *pdata) { int ret;