misc_register(&cpustate_dev); create_proc_read_entry("sky_cpustate", 0, 0, cpustate_read_proc, NULL); 
ret = misc_register(&cpustate_dev); if (ret) { printk(KERN_WARNING "sky_cpustate: Unable to register misc " "device.\n"); cpustate.set_addr = NULL; cpustate.clr_addr = NULL; return ret; }  proc_de = create_proc_read_entry("sky_cpustate", 0, 0, cpustate_read_proc, NULL); if (proc_de == NULL) printk(KERN_WARNING "sky_cpustate: Unable to create proc " "dir entry\n"); 
static int hdpu_cpustate_probe(struct device *ddev){	struct platform_device *pdev = to_platform_device(ddev);	struct resource *res;	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);	cpustate.set_addr = (unsigned long *)res->start;	cpustate.clr_addr = (unsigned long *)res->end - 1;	misc_register(&cpustate_dev);	create_proc_read_entry("sky_cpustate", 0, 0, cpustate_read_proc, NULL);	printk(KERN_INFO "Sky CPU State Driver v" SKY_CPUSTATE_VERSION "\n");	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/1ac19f4ccd8636dbe76a97cec36c95d7548cc871/hdpu_cpustate.c/buggy/drivers/misc/hdpuftrs/hdpu_cpustate.c