Re: [PATCH v3 2/3] dell-rbtn: Export notifier for other kernel modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 14, 2015 at 3:54 AM, Pali Rohár <pali.rohar@xxxxxxxxx> wrote:

> @@ -328,7 +408,9 @@ static void rbtn_notify(struct acpi_device *device, u32 event)
>
>  static int __init rbtn_init(void)
>  {
> -       return acpi_bus_register_driver(&rbtn_driver);
> +       /* ignore errors so module always loads and exports needed functions */
> +       acpi_bus_register_driver(&rbtn_driver);
> +       return 0;

Ahem, and if it fails for some reason and you try to unload the module
what will happen when you call
acpi_bus_unregister_driver(&rbtn_driver) in rbtn_exit()?\

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux