diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-01-13 03:37:49 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-01-13 03:37:49 +0300 |
commit | 856608ee5e1ea37b8976ce01ddbd19a45da88921 (patch) | |
tree | 2e7b8ffa672c18481b4be787004f69be7f7d3fc5 /drivers/pnp/pnpacpi | |
parent | d0c4c9d4a2e46f052178806c4004d52cd3ae040f (diff) | |
download | linux-856608ee5e1ea37b8976ce01ddbd19a45da88921.tar.xz |
pnp: Failed to activate device 00:0a - Samsung P35 XVM 1600 III
PNP_WRITE requires protocol supports .set. If ACPI doesn't support _SRS, .set ismeanless, so PNP_WRITE.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/pnpacpi')
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index dada89906314..662b4c279cfc 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c @@ -183,7 +183,7 @@ static int __init pnpacpi_add_device(struct acpi_device *device) if (ACPI_SUCCESS(status)) dev->capabilities |= PNP_CONFIGURABLE; dev->capabilities |= PNP_READ; - if (device->flags.dynamic_status) + if (device->flags.dynamic_status && (dev->capabilities & PNP_CONFIGURABLE)) dev->capabilities |= PNP_WRITE; if (device->flags.removable) dev->capabilities |= PNP_REMOVABLE; |