[RAMEN9610-10167][COMMON] ASoC: abox: remove unused SRAM feature
authorHyunwoong Kim <khw0178.kim@samsung.com>
Wed, 12 Dec 2018 01:10:09 +0000 (10:10 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:11 +0000 (20:23 +0300)
Change-Id: I8021188df50533aeaae13213f8ec9c2e6ac7a921
Signed-off-by: Hyunwoong Kim <khw0178.kim@samsung.com>
sound/soc/samsung/abox/abox_dbg.c

index 1d99ea693926f946d7955f1705fb0a95cfb507ca..0f3a09d6f727c9b2f9fb60824bb4300642fe541d 100644 (file)
@@ -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];