mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:36:56 +07:00
81f33c65e6
Convert sa1111 PCMCIA drivers to use the new per-socket irq/gpio infrastructure. As the core takes care of handling the IRQs, we can get rid of sa1111_pcmcia_socket_init(), sa1111_pcmcia_socket_suspend(), sa1111_pcmcia_hw_init() and sa1111_pcmcia_hw_shutdown(), as well as the private IRQ table. We remove the NCR_0 setting in Neponset, as this is duplicating what's already done via configure_socket in suspend. Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
26 lines
833 B
C
26 lines
833 B
C
#include "soc_common.h"
|
|
#include "sa11xx_base.h"
|
|
|
|
struct sa1111_pcmcia_socket {
|
|
struct soc_pcmcia_socket soc;
|
|
struct sa1111_dev *dev;
|
|
struct sa1111_pcmcia_socket *next;
|
|
};
|
|
|
|
static inline struct sa1111_pcmcia_socket *to_skt(struct soc_pcmcia_socket *s)
|
|
{
|
|
return container_of(s, struct sa1111_pcmcia_socket, soc);
|
|
}
|
|
|
|
int sa1111_pcmcia_add(struct sa1111_dev *dev, struct pcmcia_low_level *ops,
|
|
int (*add)(struct soc_pcmcia_socket *));
|
|
|
|
extern void sa1111_pcmcia_socket_state(struct soc_pcmcia_socket *, struct pcmcia_state *);
|
|
extern int sa1111_pcmcia_configure_socket(struct soc_pcmcia_socket *, const socket_state_t *);
|
|
|
|
extern int pcmcia_badge4_init(struct device *);
|
|
extern int pcmcia_jornada720_init(struct device *);
|
|
extern int pcmcia_lubbock_init(struct sa1111_dev *);
|
|
extern int pcmcia_neponset_init(struct sa1111_dev *);
|
|
|