diff options
author | Dely Sy <dlsy@snoqualmie.dp.intel.com> | 2005-05-05 11:57:25 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-05-17 14:31:10 -0700 |
commit | ee17fd93a5892c162b0a02d58cdfdb9c50cf8467 (patch) | |
tree | d218eab66a47e883ddf84f5c30e9060cd99394ec /drivers/pci/hotplug/shpchp_core.c | |
parent | ff0d2f90fdc4b564d47a7c26b16de81a16cfa28e (diff) | |
download | kernel_samsung_smdk4412-ee17fd93a5892c162b0a02d58cdfdb9c50cf8467.zip kernel_samsung_smdk4412-ee17fd93a5892c162b0a02d58cdfdb9c50cf8467.tar.gz kernel_samsung_smdk4412-ee17fd93a5892c162b0a02d58cdfdb9c50cf8467.tar.bz2 |
[PATCH] PCI Hotplug: Fix echoing 1 to power file of enabled slot problem with SHPC driver
Here is a patch to fix the problem of echoing 1 to "power" file
to enabled slot causing the slot to power down, and echoing 0
to disabled slot causing shpchp_disabled_slot() to be called
twice. This problem was reported by kenji Kaneshige.
Thanks,
Dely
Signed-off-by: Dely Sy <dely.l.sy@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_core.c')
-rw-r--r-- | drivers/pci/hotplug/shpchp_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index f0c53f8..a70a5c5 100644 --- a/drivers/pci/hotplug/shpchp_core.c +++ b/drivers/pci/hotplug/shpchp_core.c @@ -95,7 +95,7 @@ static struct hotplug_slot_ops shpchp_hotplug_slot_ops = { */ static void release_slot(struct hotplug_slot *hotplug_slot) { - struct slot *slot = (struct slot *)hotplug_slot->private; + struct slot *slot = hotplug_slot->private; dbg("%s - physical_slot = %s\n", __FUNCTION__, hotplug_slot->name); |