PNP: add interface to retrieve ACPI device from a PNPACPI device
[firefly-linux-kernel-4.4.55.git] / drivers / pnp / pnpacpi / core.c
index b2348fc2378e7e41fe145da879d8dfa739de54f0..5314bf630bc4c7fe1b227e4eb0e39b6cf618e79b 100644 (file)
@@ -144,7 +144,7 @@ static int pnpacpi_resume(struct pnp_dev *dev)
 }
 #endif
 
-static struct pnp_protocol pnpacpi_protocol = {
+struct pnp_protocol pnpacpi_protocol = {
        .name    = "Plug and Play ACPI",
        .get     = pnpacpi_get_resources,
        .set     = pnpacpi_set_resources,
@@ -154,6 +154,7 @@ static struct pnp_protocol pnpacpi_protocol = {
        .resume = pnpacpi_resume,
 #endif
 };
+EXPORT_SYMBOL(pnpacpi_protocol);
 
 static int __init pnpacpi_add_device(struct acpi_device *device)
 {