From 6f3562b04c90e304118ecc9c924ff85ce7b69dc2 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Mon, 6 Jan 2020 19:22:15 +0800 Subject: [PATCH] rockchip: resource: remove rockchip_get_resource_file_offset() Signed-off-by: Joseph Chen Change-Id: I5c468d69640f223a78dcff1b11981a0d36f3ad8a --- arch/arm/include/asm/arch-rockchip/resource_img.h | 10 ---------- arch/arm/mach-rockchip/resource_img.c | 13 ------------- 2 files changed, 23 deletions(-) mode change 100755 => 100644 arch/arm/mach-rockchip/resource_img.c diff --git a/arch/arm/include/asm/arch-rockchip/resource_img.h b/arch/arm/include/asm/arch-rockchip/resource_img.h index 492913bae2..9b0aabc2f2 100644 --- a/arch/arm/include/asm/arch-rockchip/resource_img.h +++ b/arch/arm/include/asm/arch-rockchip/resource_img.h @@ -19,16 +19,6 @@ */ int rockchip_read_resource_file(void *buf, const char *name, int offset, int len); -/* - * rockchip_get_resource_file_offset() - read file offset of partition - * - * @resc_img_hdr: resource file hdr - * @name: file name - * - * @return negative on error, otherwise file offset - */ -int rockchip_get_resource_file_offset(void *resc_hdr, const char *name); - /* * rockchip_get_resource_file_size() - read file size * diff --git a/arch/arm/mach-rockchip/resource_img.c b/arch/arm/mach-rockchip/resource_img.c old mode 100755 new mode 100644 index 2617605282..611f767d1d --- a/arch/arm/mach-rockchip/resource_img.c +++ b/arch/arm/mach-rockchip/resource_img.c @@ -15,8 +15,6 @@ #include #include #include -#include -#include #include #include #include @@ -539,17 +537,6 @@ static struct resource_file *get_file_info(struct resource_img_hdr *hdr, return NULL; } -int rockchip_get_resource_file_offset(void *resc_hdr, const char *name) -{ - struct resource_file *file; - - file = get_file_info(resc_hdr, name); - if (!file) - return -ENFILE; - - return file->f_offset; -} - /* * read file from resource partition * @buf: destination buf to store file data;