diff options
author | Alessandro Rubini <rubini@gnudd.com> | 2013-02-22 04:39:59 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-08 11:28:29 -0400 |
commit | 895ce2d891a094aeb7e9e3f3ec6a0e4c8bf038aa (patch) | |
tree | bb60c34a28d85cd8a322f30af0229af57e3cbf41 /drivers | |
parent | 1383e00f79a7bd6333083a12b43481b6bf2bdcb4 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/sta2x11-mfd.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index 9bd33169a111..d70a343078fd 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c | |||
@@ -98,17 +98,6 @@ static int sta2x11_mfd_add(struct pci_dev *pdev, gfp_t flags) | |||
98 | return 0; | 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 | /* This function is exported and is not expected to fail */ | 101 | /* This function is exported and is not expected to fail */ |
113 | u32 __sta2x11_mfd_mask(struct pci_dev *pdev, u32 reg, u32 mask, u32 val, | 102 | u32 __sta2x11_mfd_mask(struct pci_dev *pdev, u32 reg, u32 mask, u32 val, |
114 | enum sta2x11_mfd_plat_dev index) | 103 | enum sta2x11_mfd_plat_dev index) |