pcmcia: m32r uses static socket resources

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Saturday, February 27, 2010 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/a7eb169dc7292979d78f2d2f1655026ae3a9ff5f
Commit:     a7eb169dc7292979d78f2d2f1655026ae3a9ff5f
Parent:     f9c316f4a2d32e4d03497ecb24e1d2309361a5b8
Author:     Dominik Brodowski <linux@dominikbrodowski.net>
AuthorDate: Wed Jan 6 12:18:13 2010 +0100
Committer:  Dominik Brodowski <linux@dominikbrodowski.net>
CommitDate: Sun Jan 24 19:57:56 2010 +0100

    pcmcia: m32r uses static socket resources
    
    m32r_cfc sets the socket capabilities to SS_CAP_STATIC_MAP and
    also sets io_offset != 0. This means no calls to
    &pccard_nonstatic_ops went through. Therfore, replace it with
    &pccard_static_ops which is exactly for this case.
    
    CC: Mamoru Sakugawa <sakugawa@linux-m32r.org>
    CC: Hirokazu Takata <takata@linux-m32r.org>
    Tested-by: Wolfram Sang <w.sang@pengutronix.de>
    Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
---
 drivers/pcmcia/Kconfig    |    2 --
 drivers/pcmcia/m32r_cfc.c |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/pcmcia/Kconfig b/drivers/pcmcia/Kconfig
index 9f3adbd..7e9fd38 100644
--- a/drivers/pcmcia/Kconfig
+++ b/drivers/pcmcia/Kconfig
@@ -238,14 +238,12 @@ config PCMCIA_PROBE
 config M32R_PCC
 	bool "M32R PCMCIA I/F"
 	depends on M32R && CHIP_M32700 && PCMCIA
-	select PCCARD_NONSTATIC
 	help
 	  Say Y here to use the M32R PCMCIA controller.
 
 config M32R_CFC
 	bool "M32R CF I/F Controller"
 	depends on M32R && (PLAT_USRV || PLAT_M32700UT || PLAT_MAPPI2 || PLAT_MAPPI3 || PLAT_OPSPUT)
-	select PCCARD_NONSTATIC
 	help
 	  Say Y here to use the M32R CompactFlash controller.
 
diff --git a/drivers/pcmcia/m32r_cfc.c b/drivers/pcmcia/m32r_cfc.c
index 26a621c..0ece2cd 100644
--- a/drivers/pcmcia/m32r_cfc.c
+++ b/drivers/pcmcia/m32r_cfc.c
@@ -764,7 +764,7 @@ static int __init init_m32r_pcc(void)
 	for (i = 0 ; i < pcc_sockets ; i++) {
 		socket[i].socket.dev.parent = &pcc_device.dev;
 		socket[i].socket.ops = &pcc_operations;
-		socket[i].socket.resource_ops = &pccard_nonstatic_ops;
+		socket[i].socket.resource_ops = &pccard_static_ops;
 		socket[i].socket.owner = THIS_MODULE;
 		socket[i].number = i;
 		ret = pcmcia_register_socket(&socket[i].socket);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
pcmcia: m32r uses static socket resources, Linux Kernel Mailing ..., (Sat Feb 27, 5:59 pm)