aboutsummaryrefslogtreecommitdiffstats
path: root/dummy/dummy.c
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-31 18:41:33 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-31 18:41:33 +1100
commit0765c6c497379a9f850d15be3b3cbdaba59fe7fc (patch)
tree9059ea9d2e62080e4a55f8f30868d6f72485e5f8 /dummy/dummy.c
parent80973a617ada9181a40a69e25b7f23e7c02bc545 (diff)
Remove coreinfo, absorb version info into core
Since coreinfo only has version info, and this is not being used at all, we can absorb the version info into the private avirt_core structure. We could in future implement a function to retrieve the version, when, and if, it is required. Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'dummy/dummy.c')
-rw-r--r--dummy/dummy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/dummy/dummy.c b/dummy/dummy.c
index 5f19564..7c85531 100644
--- a/dummy/dummy.c
+++ b/dummy/dummy.c
@@ -34,8 +34,6 @@ MODULE_LICENSE("GPL v2");
#define get_dummy_ops(substream) \
(*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
-static struct snd_avirt_coreinfo *coreinfo;
-
/*******************************************************************************
* System Timer Interface
*
@@ -287,9 +285,9 @@ static int __init dummy_init(void)
pr_info("init()\n");
- err = snd_avirt_audiopath_register(&dummyap_module, &coreinfo);
- if ((err < 0) || (!coreinfo)) {
- pr_err("%s: coreinfo is NULL!\n", __func__);
+ err = snd_avirt_audiopath_register(&dummyap_module);
+ if (err < 0) {
+ AP_ERRORK("Failed to register with AVIRT");
return err;
}