aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 16:56:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 16:56:39 -0400
commitd3ec4844d449cf7af9e749f73ba2052fb7b72fc2 (patch)
treec515913e85f7e50878c83da2a88bc5a7269d087c /drivers/pci
parent0003230e8200699860f0b10af524dc47bf8aecad (diff)
parentdf2e301fee3c2c2a87592151397ad7699bb14c37 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits) fs: Merge split strings treewide: fix potentially dangerous trailing ';' in #defined values/expressions uwb: Fix misspelling of neighbourhood in comment net, netfilter: Remove redundant goto in ebt_ulog_packet trivial: don't touch files that are removed in the staging tree lib/vsprintf: replace link to Draft by final RFC number doc: Kconfig: `to be' -> `be' doc: Kconfig: Typo: square -> squared doc: Konfig: Documentation/power/{pm => apm-acpi}.txt drivers/net: static should be at beginning of declaration drivers/media: static should be at beginning of declaration drivers/i2c: static should be at beginning of declaration XTENSA: static should be at beginning of declaration SH: static should be at beginning of declaration MIPS: static should be at beginning of declaration ARM: static should be at beginning of declaration rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check Update my e-mail address PCIe ASPM: forcedly -> forcibly gma500: push through device driver tree ... Fix up trivial conflicts: - arch/arm/mach-ep93xx/dma-m2p.c (deleted) - drivers/gpio/gpio-ep93xx.c (renamed and context nearby) - drivers/net/r8169.c (just context changes)
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/shpchp_sysfs.c21
-rw-r--r--drivers/pci/pcie/aspm.c2
2 files changed, 10 insertions, 13 deletions
diff --git a/drivers/pci/hotplug/shpchp_sysfs.c b/drivers/pci/hotplug/shpchp_sysfs.c
index 071b7dc0094b..efa30da1ae8f 100644
--- a/drivers/pci/hotplug/shpchp_sysfs.c
+++ b/drivers/pci/hotplug/shpchp_sysfs.c
@@ -50,29 +50,26 @@ static ssize_t show_ctrl (struct device *dev, struct device_attribute *attr, cha
50 pci_bus_for_each_resource(bus, res, index) { 50 pci_bus_for_each_resource(bus, res, index) {
51 if (res && (res->flags & IORESOURCE_MEM) && 51 if (res && (res->flags & IORESOURCE_MEM) &&
52 !(res->flags & IORESOURCE_PREFETCH)) { 52 !(res->flags & IORESOURCE_PREFETCH)) {
53 out += sprintf(out, "start = %8.8llx, " 53 out += sprintf(out, "start = %8.8llx, length = %8.8llx\n",
54 "length = %8.8llx\n", 54 (unsigned long long)res->start,
55 (unsigned long long)res->start, 55 (unsigned long long)resource_size(res));
56 (unsigned long long)(res->end - res->start));
57 } 56 }
58 } 57 }
59 out += sprintf(out, "Free resources: prefetchable memory\n"); 58 out += sprintf(out, "Free resources: prefetchable memory\n");
60 pci_bus_for_each_resource(bus, res, index) { 59 pci_bus_for_each_resource(bus, res, index) {
61 if (res && (res->flags & IORESOURCE_MEM) && 60 if (res && (res->flags & IORESOURCE_MEM) &&
62 (res->flags & IORESOURCE_PREFETCH)) { 61 (res->flags & IORESOURCE_PREFETCH)) {
63 out += sprintf(out, "start = %8.8llx, " 62 out += sprintf(out, "start = %8.8llx, length = %8.8llx\n",
64 "length = %8.8llx\n", 63 (unsigned long long)res->start,
65 (unsigned long long)res->start, 64 (unsigned long long)resource_size(res));
66 (unsigned long long)(res->end - res->start));
67 } 65 }
68 } 66 }
69 out += sprintf(out, "Free resources: IO\n"); 67 out += sprintf(out, "Free resources: IO\n");
70 pci_bus_for_each_resource(bus, res, index) { 68 pci_bus_for_each_resource(bus, res, index) {
71 if (res && (res->flags & IORESOURCE_IO)) { 69 if (res && (res->flags & IORESOURCE_IO)) {
72 out += sprintf(out, "start = %8.8llx, " 70 out += sprintf(out, "start = %8.8llx, length = %8.8llx\n",
73 "length = %8.8llx\n", 71 (unsigned long long)res->start,
74 (unsigned long long)res->start, 72 (unsigned long long)resource_size(res));
75 (unsigned long long)(res->end - res->start));
76 } 73 }
77 } 74 }
78 out += sprintf(out, "Free resources: bus numbers\n"); 75 out += sprintf(out, "Free resources: bus numbers\n");
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 6892601fc76f..cbfbab18be91 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -940,7 +940,7 @@ static int __init pcie_aspm_disable(char *str)
940 printk(KERN_INFO "PCIe ASPM is disabled\n"); 940 printk(KERN_INFO "PCIe ASPM is disabled\n");
941 } else if (!strcmp(str, "force")) { 941 } else if (!strcmp(str, "force")) {
942 aspm_force = 1; 942 aspm_force = 1;
943 printk(KERN_INFO "PCIe ASPM is forcedly enabled\n"); 943 printk(KERN_INFO "PCIe ASPM is forcibly enabled\n");
944 } 944 }
945 return 1; 945 return 1;
946} 946}