Lines Matching refs:op
237 static int __devinit env_probe(struct platform_device *op,
248 p->regs = of_ioremap(&op->resource[0], 0, REG_SIZE, "pic16f747");
252 err = sysfs_create_group(&op->dev.kobj, &env_group);
256 p->hwmon_dev = hwmon_device_register(&op->dev);
262 dev_set_drvdata(&op->dev, p);
269 sysfs_remove_group(&op->dev.kobj, &env_group);
272 of_iounmap(&op->resource[0], p->regs, REG_SIZE);
279 static int __devexit env_remove(struct platform_device *op)
281 struct env *p = dev_get_drvdata(&op->dev);
284 sysfs_remove_group(&op->dev.kobj, &env_group);
286 of_iounmap(&op->resource[0], p->regs, REG_SIZE);