ACPI / einj: Make error paths more talkative
authorBorislav Petkov <bp@suse.de>
Mon, 23 May 2016 08:28:04 +0000 (10:28 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Jun 2016 21:41:38 +0000 (23:41 +0200)
commitdba648300e890fb6961d896ab3bd60704815adf3
tree84da05844cdb99b1ecf6cfeeb4bb3545adfbb0d8
parentb2f740baa4215254cee94a1d326a29d984169e4e
ACPI / einj: Make error paths more talkative

It is absolutely unfriendly when one sees this:

  # modprobe einj
  modprobe: ERROR: could not insert 'einj': No such device

without anything in dmesg to tell one why the load failed.

Beef up the error handling of the init function to be more user-friendly
when the load fails.

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/einj.c