* [PATCH v2] ASoC: max9867: Drop probe function
@ 2018-03-01 21:57 Ladislav Michl
2018-03-02 12:43 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2018-03-01 21:57 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>
---
Changes:
- v2: Rebased against Mark's current tree
Mark,
is this what you asked for? It does not make much sense to me
as you have to redo the work I wanted to save you...
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 2f60924fe919..6b128dd6c5dd 100644
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -404,17 +404,7 @@ static int max9867_resume(struct device *dev)
}
#endif
-static int max9867_probe(struct snd_soc_codec *codec)
-{
- struct max9867_priv *max9867 = snd_soc_codec_get_drvdata(codec);
-
- dev_dbg(codec->dev, "max98090_probe\n");
- max9867->codec = codec;
- return 0;
-}
-
static const struct snd_soc_codec_driver max9867_codec = {
- .probe = max9867_probe,
.component_driver = {
.controls = max9867_snd_controls,
.num_controls = ARRAY_SIZE(max9867_snd_controls),
diff --git a/sound/soc/codecs/max9867.h b/sound/soc/codecs/max9867.h
index 65590b4ad62a..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_codec *codec;
unsigned int sysclk;
unsigned int pclk;
unsigned int master;
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v2] ASoC: max9867: Drop probe function
2018-03-01 21:57 [PATCH v2] ASoC: max9867: Drop probe function Ladislav Michl
@ 2018-03-02 12:43 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2018-03-02 12:43 UTC (permalink / raw)
To: Ladislav Michl; +Cc: alsa-devel, Alexandre Belloni
[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]
On Thu, Mar 01, 2018 at 10:57:01PM +0100, Ladislav Michl wrote:
> Driver probe function has no use and can be deleted.
>
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> ---
> Changes:
> - v2: Rebased against Mark's current tree
>
> Mark,
>
> is this what you asked for? It does not make much sense to me
> as you have to redo the work I wanted to save you...
No, this doesn't apply - please resend what you originally sent.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-02 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01 21:57 [PATCH v2] ASoC: max9867: Drop probe function Ladislav Michl
2018-03-02 12:43 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox