/* This simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.  */
struct device* get_device(struct device *dev)
/* This simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.  */
struct device* get_device(struct device *dev)
{
	return dev ? to_dev(kobject_get(&dev->kobj)) : NULL;
}