Skip to content

Commit

Permalink
apple-bce: update use of class_create
Browse files Browse the repository at this point in the history
needed for linux6.4
  • Loading branch information
Redecorating authored Jun 27, 2023
1 parent b21787d commit c0db79a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 1001-Add-apple-bce-driver.patch
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ index 000000000..4f733a0fa
+ int result;
+ if ((result = alloc_chrdev_region(&bce_chrdev, 0, 1, "apple-bce")))
+ goto fail_chrdev;
+ bce_class = class_create(THIS_MODULE, "apple-bce");
+ bce_class = class_create("apple-bce");
+ if (IS_ERR(bce_class)) {
+ result = PTR_ERR(bce_class);
+ goto fail_class;
Expand Down Expand Up @@ -1250,7 +1250,7 @@ index 000000000..2e0f75f2d
+ int result;
+ if ((result = alloc_chrdev_region(&aaudio_chrdev, 0, 1, "aaudio")))
+ goto fail_chrdev;
+ aaudio_class = class_create(THIS_MODULE, "aaudio");
+ aaudio_class = class_create("aaudio");
+ if (IS_ERR(aaudio_class)) {
+ result = PTR_ERR(aaudio_class);
+ goto fail_class;
Expand Down Expand Up @@ -5795,7 +5795,7 @@ index 000000000..ae6abcf76
+ int result;
+ if ((result = alloc_chrdev_region(&bce_vhci_chrdev, 0, 1, "bce-vhci")))
+ goto fail_chrdev;
+ bce_vhci_class = class_create(THIS_MODULE, "bce-vhci");
+ bce_vhci_class = class_create("bce-vhci");
+ if (IS_ERR(bce_vhci_class)) {
+ result = PTR_ERR(bce_vhci_class);
+ goto fail_class;
Expand Down

0 comments on commit c0db79a

Please sign in to comment.