idno = (dev == NULL) ? -1 : to_platform_device(dev)->id; 
if (dev == NULL || dev->bus != &platform_bus_type) idno = -1; else idno = to_platform_device(dev)->id; 
struct clk *clk_get(struct device *dev, const char *id){	struct clk *p;	struct clk *clk = ERR_PTR(-ENOENT);	int idno;	idno = (dev == NULL) ? -1 : to_platform_device(dev)->id;	down(&clocks_sem);	list_for_each_entry(p, &clocks, list) {		if (p->id == idno &&		    strcmp(id, p->name) == 0 &&		    try_module_get(p->owner)) {			clk = p;			break;		}	}	/* check for the case where a device was supplied, but the	 * clock that was being searched for is not device specific */	if (IS_ERR(clk)) {		list_for_each_entry(p, &clocks, list) {			if (p->id == -1 && strcmp(id, p->name) == 0 &&			    try_module_get(p->owner)) {				clk = p;				break;			}		}	}	up(&clocks_sem);	return clk;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/c086f282c01d7e5a887c3f7b190520538267f12e/clock.c/buggy/arch/arm/mach-s3c2410/clock.c