cdev = class_device_create(hwmon_class, MKDEV(0,0), dev, 
cdev = class_device_create(hwmon_class, NULL, MKDEV(0,0), dev, 
struct class_device *hwmon_device_register(struct device *dev){	struct class_device *cdev;	int id;	if (idr_pre_get(&hwmon_idr, GFP_KERNEL) == 0)		return ERR_PTR(-ENOMEM);	if (idr_get_new(&hwmon_idr, NULL, &id) < 0)		return ERR_PTR(-ENOMEM);	id = id & MAX_ID_MASK;	cdev = class_device_create(hwmon_class, MKDEV(0,0), dev,					HWMON_ID_FORMAT, id);	if (IS_ERR(cdev))		idr_remove(&hwmon_idr, id);	return cdev;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/hwmon.c/buggy/drivers/hwmon/hwmon.c