From: Hyunwoong Kim Date: Wed, 12 Dec 2018 01:10:09 +0000 (+0900) Subject: [RAMEN9610-10167][COMMON] ASoC: abox: remove unused SRAM feature X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c9e655991a5d18462812d7853e9f3dd017c410a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-10167][COMMON] ASoC: abox: remove unused SRAM feature Change-Id: I8021188df50533aeaae13213f8ec9c2e6ac7a921 Signed-off-by: Hyunwoong Kim --- diff --git a/sound/soc/samsung/abox/abox_dbg.c b/sound/soc/samsung/abox/abox_dbg.c index 1d99ea693926..0f3a09d6f727 100644 --- a/sound/soc/samsung/abox/abox_dbg.c +++ b/sound/soc/samsung/abox/abox_dbg.c @@ -322,18 +322,6 @@ static ssize_t calliope_sram_read(struct file *file, struct kobject *kobj, return size; } -static ssize_t calliope_iva_read(struct file *file, struct kobject *kobj, - struct bin_attribute *battr, char *buf, - loff_t off, size_t size) -{ - struct device *dev = kobj_to_dev(kobj); - - dev_dbg(dev, "%s(%lld, %zu)\n", __func__, off, size); - - memcpy(buf, battr->private + off, size); - return size; -} - static ssize_t calliope_dram_read(struct file *file, struct kobject *kobj, struct bin_attribute *battr, char *buf, loff_t off, size_t size) @@ -348,11 +336,9 @@ static ssize_t calliope_dram_read(struct file *file, struct kobject *kobj, /* size will be updated later */ static BIN_ATTR_RO(calliope_sram, 0); -static BIN_ATTR_RO(calliope_iva, IVA_FIRMWARE_SIZE); static BIN_ATTR_RO(calliope_dram, DRAM_FIRMWARE_SIZE); static struct bin_attribute *calliope_bin_attrs[] = { &bin_attr_calliope_sram, - &bin_attr_calliope_iva, &bin_attr_calliope_dram, }; @@ -412,7 +398,6 @@ static int samsung_abox_debug_probe(struct platform_device *pdev) ret = device_create_file(dev, &dev_attr_gpr); bin_attr_calliope_sram.size = data->sram_size; bin_attr_calliope_sram.private = data->sram_base; - bin_attr_calliope_iva.private = data->iva_base; bin_attr_calliope_dram.private = data->dram_base; for (i = 0; i < ARRAY_SIZE(calliope_bin_attrs); i++) { struct bin_attribute *battr = calliope_bin_attrs[i];