mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
rk: vpu_service: fix compile error when build without proc_fs support
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user