Skip to content

Commit cb70cf9

Browse files
Tom Rixmiquelraynal
authored andcommitted
mtd: rawnand: remove unused is_imx51_nfc and imx53_nfc functions
clang with W=1 reports drivers/mtd/nand/raw/mxc_nand.c:1602:19: error: unused function 'is_imx51_nfc' [-Werror,-Wunused-function] static inline int is_imx51_nfc(struct mxc_nand_host *host) ^ drivers/mtd/nand/raw/mxc_nand.c:1607:19: error: unused function 'is_imx53_nfc' [-Werror,-Wunused-function] static inline int is_imx53_nfc(struct mxc_nand_host *host) ^ These functions are not used, so remove them. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230321114638.1782086-1-trix@redhat.com
1 parent 7c09abb commit cb70cf9

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/mtd/nand/raw/mxc_nand.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,16 +1599,6 @@ static inline int is_imx25_nfc(struct mxc_nand_host *host)
15991599
return host->devtype_data == &imx25_nand_devtype_data;
16001600
}
16011601

1602-
static inline int is_imx51_nfc(struct mxc_nand_host *host)
1603-
{
1604-
return host->devtype_data == &imx51_nand_devtype_data;
1605-
}
1606-
1607-
static inline int is_imx53_nfc(struct mxc_nand_host *host)
1608-
{
1609-
return host->devtype_data == &imx53_nand_devtype_data;
1610-
}
1611-
16121602
static const struct of_device_id mxcnd_dt_ids[] = {
16131603
{ .compatible = "fsl,imx21-nand", .data = &imx21_nand_devtype_data, },
16141604
{ .compatible = "fsl,imx27-nand", .data = &imx27_nand_devtype_data, },

0 commit comments

Comments
 (0)