Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: sta2x11: Build warning fix

This driver cannot be a module, so "remove" is never called. The
mishap is mine, and back then there was no warning due to __devexit().

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Acked-by: Davide Ciminaghi <ciminaghi@gnudd.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Alessandro Rubini and committed by
Samuel Ortiz
895ce2d8 1383e00f

-11
-11
drivers/mfd/sta2x11-mfd.c
··· 98 98 return 0; 99 99 } 100 100 101 - static int mfd_remove(struct pci_dev *pdev) 102 - { 103 - struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); 104 - 105 - if (!mfd) 106 - return -ENODEV; 107 - list_del(&mfd->list); 108 - kfree(mfd); 109 - return 0; 110 - } 111 - 112 101 /* This function is exported and is not expected to fail */ 113 102 u32 __sta2x11_mfd_mask(struct pci_dev *pdev, u32 reg, u32 mask, u32 val, 114 103 enum sta2x11_mfd_plat_dev index)