mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
pcmcia: simplify IntType
IntType was only set to INT_MEMORY (driver pcmciamtd) or INT_MEMORY_AND_IO (all other drivers). As this flags seems to relate to ioport access, make it conditional to the driver having requested IO port access. There are two drivers which do not request IO ports, but did set INT_MEMORY_AND_IO: ray_cs and b43. For those, we consistently only set INT_MEMORY in future. CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: Jiri Kosina <[email protected]> CC: [email protected] Acked-by: Gustavo F. Padovan <[email protected]> (for drivers/bluetooth) Tested-by: Wolfram Sang <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
fc30110103
commit
37979e1546
57 changed files with 1 additions and 78 deletions
|
|
@ -866,7 +866,6 @@ static int bluecard_probe(struct pcmcia_device *link)
|
|||
link->priv = info;
|
||||
|
||||
link->conf.Attributes = CONF_ENABLE_IRQ;
|
||||
link->conf.IntType = INT_MEMORY_AND_IO;
|
||||
|
||||
return bluecard_config(link);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -661,7 +661,6 @@ static int bt3c_probe(struct pcmcia_device *link)
|
|||
link->resource[0]->end = 8;
|
||||
|
||||
link->conf.Attributes = CONF_ENABLE_IRQ;
|
||||
link->conf.IntType = INT_MEMORY_AND_IO;
|
||||
|
||||
return bt3c_config(link);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -590,7 +590,6 @@ static int btuart_probe(struct pcmcia_device *link)
|
|||
link->resource[0]->end = 8;
|
||||
|
||||
link->conf.Attributes = CONF_ENABLE_IRQ;
|
||||
link->conf.IntType = INT_MEMORY_AND_IO;
|
||||
|
||||
return btuart_config(link);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -576,7 +576,6 @@ static int dtl1_probe(struct pcmcia_device *link)
|
|||
link->resource[0]->end = 8;
|
||||
|
||||
link->conf.Attributes = CONF_ENABLE_IRQ;
|
||||
link->conf.IntType = INT_MEMORY_AND_IO;
|
||||
|
||||
return dtl1_config(link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue