devices/ccat/update.c
branchstable-1.5
changeset 2565 f7b06b264646
parent 2559 a24ff468cb25
child 2567 d70aad2f131f
equal deleted inserted replaced
2561:4839e81d2bdd 2565:f7b06b264646
   400 		pr_warn("CCAT Update rev. %d not supported\n",
   400 		pr_warn("CCAT Update rev. %d not supported\n",
   401 			update->info.nRevision);
   401 			update->info.nRevision);
   402 		goto cleanup;
   402 		goto cleanup;
   403 	}
   403 	}
   404 
   404 
   405 	if (alloc_chrdev_region(&update->dev, 0, 1, DRV_NAME)) {
   405 	if (alloc_chrdev_region(&update->dev, 0, 1, KBUILD_MODNAME)) {
   406 		pr_warn("alloc_chrdev_region() failed\n");
   406 		pr_warn("alloc_chrdev_region() failed\n");
   407 		goto cleanup;
   407 		goto cleanup;
   408 	}
   408 	}
   409 
   409 
   410 	update->class = class_create(THIS_MODULE, "ccat_update");
   410 	update->class = class_create(THIS_MODULE, "ccat_update");