static int lm_bus_probe(struct device *dev) { struct lm_device *lmdev = to_lm_device(dev); struct lm_driver *lmdrv = to_lm_driver(dev->driver); return lmdrv->probe(lmdev); }
static int lm_bus_remove(struct device *dev) { struct lm_device *lmdev = to_lm_device(dev); struct lm_driver *lmdrv = to_lm_driver(dev->driver); lmdrv->remove(lmdev); return 0; }
static int lm_bus_probe(struct device *dev) { struct lm_device *lmdev = to_lm_device(dev); struct lm_driver *lmdrv = to_lm_driver(dev->driver); printk (KERN_INFO "calling otg driver probe\n"); return lmdrv->probe(lmdev); }
static int lm_bus_suspend(struct device *dev, pm_message_t state) { struct lm_device *lmdev = to_lm_device(dev); struct lm_driver *lmdrv = to_lm_driver(dev->driver); if (lmdrv->suspend) return lmdrv->suspend(lmdev, state); return 0; }
int lm_bus_prepare(struct device *dev) { struct lm_driver *lmdrv = to_lm_driver(dev->driver); struct dev_pm_ops *pm = lmdrv ? lmdrv->pm : NULL; int ret; ret = pm && pm->prepare ? pm->prepare(dev) : 0; return ret; }