drivers:pcmcia:soc_common: make socket_init and socket_suspend optional
10 boards define these empty, probably indicating not everyone has a use for them. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
Родитель
02f8c6aee8
Коммит
a747ce835e
|
@ -186,7 +186,7 @@ static int soc_common_pcmcia_sock_init(struct pcmcia_socket *sock)
|
||||||
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
|
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
|
||||||
|
|
||||||
debug(skt, 2, "initializing socket\n");
|
debug(skt, 2, "initializing socket\n");
|
||||||
|
if (skt->ops->socket_init)
|
||||||
skt->ops->socket_init(skt);
|
skt->ops->socket_init(skt);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -207,6 +207,7 @@ static int soc_common_pcmcia_suspend(struct pcmcia_socket *sock)
|
||||||
|
|
||||||
debug(skt, 2, "suspending socket\n");
|
debug(skt, 2, "suspending socket\n");
|
||||||
|
|
||||||
|
if (skt->ops->socket_suspend)
|
||||||
skt->ops->socket_suspend(skt);
|
skt->ops->socket_suspend(skt);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче