equal
deleted
inserted
replaced
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"); |