Skip to content

Commit 71bed1e

Browse files
committed
Merge tag 'pcmcia-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux
Pull PCMCIA updates from Dominik Brodowski: "A number of tiny cleanups of the PCMCIA subsystem by Jeff Johnson, Jules Irenge, and Krzysztof Kozlowski" * tag 'pcmcia-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/linux: pcmcia: add missing MODULE_DESCRIPTION() macros pcmcia: Use resource_size function on resource object pcmcia: bcm63xx: drop driver owner assignment
2 parents fd71b9a + 0630e3b commit 71bed1e

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

drivers/pcmcia/bcm63xx_pcmcia.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ struct platform_driver bcm63xx_pcmcia_driver = {
456456
.remove_new = bcm63xx_drv_pcmcia_remove,
457457
.driver = {
458458
.name = "bcm63xx_pcmcia",
459-
.owner = THIS_MODULE,
460459
},
461460
};
462461

drivers/pcmcia/i82092.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "i82092aa.h"
2424
#include "i82365.h"
2525

26+
MODULE_DESCRIPTION("Driver for Intel I82092AA PCI-PCMCIA bridge");
2627
MODULE_LICENSE("GPL");
2728

2829
/* PCI core routines */

drivers/pcmcia/i82365.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,5 +1342,6 @@ static void __exit exit_i82365(void)
13421342

13431343
module_init(init_i82365);
13441344
module_exit(exit_i82365);
1345+
MODULE_DESCRIPTION("Driver for Intel 82365 and compatible PC Card controllers");
13451346
MODULE_LICENSE("Dual MPL/GPL");
13461347
/*====================================================================*/

drivers/pcmcia/max1600.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,5 @@ int max1600_configure(struct max1600 *m, unsigned int vcc, unsigned int vpp)
119119
}
120120
EXPORT_SYMBOL_GPL(max1600_configure);
121121

122+
MODULE_DESCRIPTION("MAX1600 PCMCIA power switch library");
122123
MODULE_LICENSE("GPL v2");

drivers/pcmcia/rsrc_mgr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ EXPORT_SYMBOL(pccard_static_ops);
6666

6767

6868
MODULE_AUTHOR("David A. Hinds, Dominik Brodowski");
69+
MODULE_DESCRIPTION("PCMCIA resource management routines");
6970
MODULE_LICENSE("GPL");
7071
MODULE_ALIAS("rsrc_nonstatic");

drivers/pcmcia/yenta_socket.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,11 @@ static int yenta_search_one_res(struct resource *root, struct resource *res,
638638
start = PCIBIOS_MIN_CARDBUS_IO;
639639
end = ~0U;
640640
} else {
641-
unsigned long avail = root->end - root->start;
641+
unsigned long avail = resource_size(root);
642642
int i;
643643
size = BRIDGE_MEM_MAX;
644-
if (size > avail/8) {
645-
size = (avail+1)/8;
644+
if (size > (avail - 1) / 8) {
645+
size = avail / 8;
646646
/* round size down to next power of 2 */
647647
i = 0;
648648
while ((size /= 2) != 0)
@@ -1452,4 +1452,5 @@ static struct pci_driver yenta_cardbus_driver = {
14521452

14531453
module_pci_driver(yenta_cardbus_driver);
14541454

1455+
MODULE_DESCRIPTION("Driver for CardBus yenta-compatible bridges");
14551456
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)