aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb/umc-bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/umc-bus.c')
-rw-r--r--drivers/uwb/umc-bus.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/uwb/umc-bus.c b/drivers/uwb/umc-bus.c
index 88a290f57ea0..c8571405146d 100644
--- a/drivers/uwb/umc-bus.c
+++ b/drivers/uwb/umc-bus.c
@@ -163,38 +163,6 @@ static int umc_device_remove(struct device *dev)
163 return 0; 163 return 0;
164} 164}
165 165
166static int umc_device_suspend(struct device *dev, pm_message_t state)
167{
168 struct umc_dev *umc;
169 struct umc_driver *umc_driver;
170 int err = 0;
171
172 umc = to_umc_dev(dev);
173
174 if (dev->driver) {
175 umc_driver = to_umc_driver(dev->driver);
176 if (umc_driver->suspend)
177 err = umc_driver->suspend(umc, state);
178 }
179 return err;
180}
181
182static int umc_device_resume(struct device *dev)
183{
184 struct umc_dev *umc;
185 struct umc_driver *umc_driver;
186 int err = 0;
187
188 umc = to_umc_dev(dev);
189
190 if (dev->driver) {
191 umc_driver = to_umc_driver(dev->driver);
192 if (umc_driver->resume)
193 err = umc_driver->resume(umc);
194 }
195 return err;
196}
197
198static ssize_t capability_id_show(struct device *dev, struct device_attribute *attr, char *buf) 166static ssize_t capability_id_show(struct device *dev, struct device_attribute *attr, char *buf)
199{ 167{
200 struct umc_dev *umc = to_umc_dev(dev); 168 struct umc_dev *umc = to_umc_dev(dev);
@@ -223,8 +191,6 @@ struct bus_type umc_bus_type = {
223 .match = umc_bus_match, 191 .match = umc_bus_match,
224 .probe = umc_device_probe, 192 .probe = umc_device_probe,
225 .remove = umc_device_remove, 193 .remove = umc_device_remove,
226 .suspend = umc_device_suspend,
227 .resume = umc_device_resume,
228 .dev_groups = umc_dev_groups, 194 .dev_groups = umc_dev_groups,
229}; 195};
230EXPORT_SYMBOL_GPL(umc_bus_type); 196EXPORT_SYMBOL_GPL(umc_bus_type);