From e4799aa3743f05326f7497dd422a8da9739284e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 6 Jun 2013 19:21:57 +0800 Subject: [PATCH] rk: vpu_service: fix compile error when build without proc_fs support --- arch/arm/plat-rk/vpu_service.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/plat-rk/vpu_service.c b/arch/arm/plat-rk/vpu_service.c index 5fa902ab3626..df58c0548803 100644 --- a/arch/arm/plat-rk/vpu_service.c +++ b/arch/arm/plat-rk/vpu_service.c @@ -1329,7 +1329,12 @@ static irqreturn_t vepu_isr(int irq, void *dev_id) return IRQ_HANDLED; } +#ifdef CONFIG_PROC_FS static int __init vpu_service_proc_init(void); +#else +static inline int vpu_service_proc_init(void) { return 0; } +#endif + static int __init vpu_service_init(void) { int ret; @@ -1418,7 +1423,12 @@ err_hw_id_check: return ret; } +#ifdef CONFIG_PROC_FS static void __exit vpu_service_proc_release(void); +#else +#define vpu_service_proc_release() do {} while (0) +#endif + static void __exit vpu_service_exit(void) { vpu_service_proc_release(); -- 2.34.1