Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2210eda authored by Jeff Hugo's avatar Jeff Hugo
Browse files

msm: smd: Remove smd_open()



smd_open() is deprecated and dead code.  Remove it.

Change-Id: Iaf8f17ebb11179deab2d19360683f09da08086d6
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 07af3c2c
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -143,10 +143,6 @@ struct smd_platform {
};

#ifdef CONFIG_MSM_SMD
/* warning: notify() may be called before open returns */
int smd_open(const char *name, smd_channel_t **ch, void *priv,
	     void (*notify)(void *priv, unsigned event));

int smd_close(smd_channel_t *ch);

/* passing a null pointer for data reads and discards */
@@ -327,12 +323,6 @@ int smd_remote_ss_to_edge(const char *name);

#else

static inline int smd_open(const char *name, smd_channel_t **ch, void *priv,
	     void (*notify)(void *priv, unsigned event))
{
	return -ENODEV;
}

static inline int smd_close(smd_channel_t *ch)
{
	return -ENODEV;
+0 −9
Original line number Diff line number Diff line
@@ -2076,15 +2076,6 @@ int smd_named_open_on_edge(const char *name, uint32_t edge,
}
EXPORT_SYMBOL(smd_named_open_on_edge);


int smd_open(const char *name, smd_channel_t **_ch,
	     void *priv, void (*notify)(void *, unsigned))
{
	return smd_named_open_on_edge(name, SMD_APPS_MODEM, _ch, priv,
				      notify);
}
EXPORT_SYMBOL(smd_open);

int smd_close(smd_channel_t *ch)
{
	unsigned long flags;