Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=856608ee5e1ea37b8976ce01ddbd19a45da88921
Commit:     856608ee5e1ea37b8976ce01ddbd19a45da88921
Parent:     d0c4c9d4a2e46f052178806c4004d52cd3ae040f
Author:     Shaohua Li <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 12 19:37:49 2008 -0500
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Sat Jan 12 19:37:49 2008 -0500

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 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 dada899..662b4c2 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to