Commit 906c1426 authored by Bjorn Helgaas's avatar Bjorn Helgaas

Merge branch 'pci/hotplug' into next

* pci/hotplug:
  PCI: acpiphp_ibm: Make ibm_apci_table_attr __ro_after_init
  PCI: rpadlpar: Remove unnecessary return statement
parents 63ab93f0 1acf8bca
...@@ -107,7 +107,7 @@ static void __exit ibm_acpiphp_exit(void); ...@@ -107,7 +107,7 @@ static void __exit ibm_acpiphp_exit(void);
static acpi_handle ibm_acpi_handle; static acpi_handle ibm_acpi_handle;
static struct notification ibm_note; static struct notification ibm_note;
static struct bin_attribute ibm_apci_table_attr = { static struct bin_attribute ibm_apci_table_attr __ro_after_init = {
.attr = { .attr = {
.name = "apci_table", .name = "apci_table",
.mode = S_IRUGO, .mode = S_IRUGO,
......
...@@ -463,7 +463,6 @@ static inline int is_dlpar_capable(void) ...@@ -463,7 +463,6 @@ static inline int is_dlpar_capable(void)
int __init rpadlpar_io_init(void) int __init rpadlpar_io_init(void)
{ {
int rc = 0;
if (!is_dlpar_capable()) { if (!is_dlpar_capable()) {
printk(KERN_WARNING "%s: partition not DLPAR capable\n", printk(KERN_WARNING "%s: partition not DLPAR capable\n",
...@@ -471,8 +470,7 @@ int __init rpadlpar_io_init(void) ...@@ -471,8 +470,7 @@ int __init rpadlpar_io_init(void)
return -EPERM; return -EPERM;
} }
rc = dlpar_sysfs_init(); return dlpar_sysfs_init();
return rc;
} }
void rpadlpar_io_exit(void) void rpadlpar_io_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment