* [PATCH RESEND] ASoC: max9867: Drop probe function
@ 2018-03-02 13:11 Ladislav Michl
0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2018-03-02 13:11 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Alexandre Belloni
Driver probe function has no use and can be deleted.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
sound/soc/codecs/max9867.c | 10 ----------
sound/soc/codecs/max9867.h | 1 -
2 files changed, 11 deletions(-)
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 99b8035d2fda..3620b38291f0 100644
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -406,17 +406,7 @@ static int max9867_resume(struct device *dev)
}
#endif
-static int max9867_probe(struct snd_soc_component *component)
-{
- struct max9867_priv *max9867 = snd_soc_component_get_drvdata(component);
-
- dev_dbg(component->dev, "max98090_probe\n");
- max9867->component = component;
- return 0;
-}
-
static const struct snd_soc_component_driver max9867_component = {
- .probe = max9867_probe,
.controls = max9867_snd_controls,
.num_controls = ARRAY_SIZE(max9867_snd_controls),
.dapm_routes = max9867_audio_map,
diff --git a/sound/soc/codecs/max9867.h b/sound/soc/codecs/max9867.h
index c0aea3d1f2ba..55cd9976ff47 100644
--- a/sound/soc/codecs/max9867.h
+++ b/sound/soc/codecs/max9867.h
@@ -75,7 +75,6 @@
/* codec private data */
struct max9867_priv {
struct regmap *regmap;
- struct snd_soc_component *component;
unsigned int sysclk;
unsigned int pclk;
unsigned int master;
--
2.16.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-02 13:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-02 13:11 [PATCH RESEND] ASoC: max9867: Drop probe function Ladislav Michl
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.