Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: pcmcia: avoid buffer overflow in pcmcia_setup_isa_irq pcmcia: do not request windows if you don't need to pcmcia: insert PCMCIA device resources into resource tree pcmcia: export resource information to sysfs pcmcia: use struct resource for PCMCIA devices, part 2 pcmcia: remove memreq_t pcmcia: move local definitions out of include/pcmcia/cs.h pcmcia: do not use io_req_t when calling pcmcia_request_io() pcmcia: do not use io_req_t after call to pcmcia_request_io() pcmcia: use struct resource for PCMCIA devices pcmcia: clean up cs.h pcmcia: use pcmica_{read,write}_config_byte pcmcia: remove cs_types.h pcmcia: remove unused flag, simplify headers pcmcia: remove obsolete CS_EVENT_ definitions pcmcia: split up central event handler pcmcia: simplify event callback pcmcia: remove obsolete ioctl Conflicts in: - drivers/staging/comedi/drivers/* - drivers/staging/wlags49_h2/wl_cs.c due to dev_info_t and whitespace changes
这个提交包含在:
@@ -20,7 +20,6 @@
|
||||
#include <linux/mmc/sdio_func.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include <pcmcia/cs_types.h>
|
||||
#include <pcmcia/cs.h>
|
||||
#include <pcmcia/cistpl.h>
|
||||
#include <pcmcia/ds.h>
|
||||
|
@@ -13,7 +13,6 @@
|
||||
#include <linux/io.h>
|
||||
#include <linux/etherdevice.h>
|
||||
|
||||
#include <pcmcia/cs_types.h>
|
||||
#include <pcmcia/cs.h>
|
||||
#include <pcmcia/cistpl.h>
|
||||
#include <pcmcia/ciscode.h>
|
||||
@@ -72,14 +71,9 @@
|
||||
/* Write to a PCMCIA configuration register. */
|
||||
static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value)
|
||||
{
|
||||
conf_reg_t reg;
|
||||
int res;
|
||||
|
||||
memset(®, 0, sizeof(reg));
|
||||
reg.Offset = offset;
|
||||
reg.Action = CS_WRITE;
|
||||
reg.Value = value;
|
||||
res = pcmcia_access_configuration_register(bus->host_pcmcia, ®);
|
||||
res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value);
|
||||
if (unlikely(res != 0))
|
||||
return -EBUSY;
|
||||
|
||||
@@ -89,16 +83,11 @@ static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value)
|
||||
/* Read from a PCMCIA configuration register. */
|
||||
static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value)
|
||||
{
|
||||
conf_reg_t reg;
|
||||
int res;
|
||||
|
||||
memset(®, 0, sizeof(reg));
|
||||
reg.Offset = offset;
|
||||
reg.Action = CS_READ;
|
||||
res = pcmcia_access_configuration_register(bus->host_pcmcia, ®);
|
||||
res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value);
|
||||
if (unlikely(res != 0))
|
||||
return -EBUSY;
|
||||
*value = reg.Value;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#include <linux/pci.h>
|
||||
#include <linux/io.h>
|
||||
|
||||
#include <pcmcia/cs_types.h>
|
||||
#include <pcmcia/cs.h>
|
||||
#include <pcmcia/cistpl.h>
|
||||
#include <pcmcia/ds.h>
|
||||
|
在新工单中引用
屏蔽一个用户