提交 a747ce83 编写于 作者: J Jonathan Cameron 提交者: Dominik Brodowski

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: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
上级 02f8c6ae
无相关合并请求
......@@ -186,8 +186,8 @@ static int soc_common_pcmcia_sock_init(struct pcmcia_socket *sock)
struct soc_pcmcia_socket *skt = to_soc_pcmcia_socket(sock);
debug(skt, 2, "initializing socket\n");
skt->ops->socket_init(skt);
if (skt->ops->socket_init)
skt->ops->socket_init(skt);
return 0;
}
......@@ -207,7 +207,8 @@ static int soc_common_pcmcia_suspend(struct pcmcia_socket *sock)
debug(skt, 2, "suspending socket\n");
skt->ops->socket_suspend(skt);
if (skt->ops->socket_suspend)
skt->ops->socket_suspend(skt);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部