gpu: nvgpu: add CONFIG_PM check for do_idle()

gk20a_do_idle()/gk20a_do_unidle() should be defined
if both CONFIG_GK20A and CONFIG_PM are defined

Also, remove unused API nvhost_vpr_info_fetch()

Change-Id: I9c461bf1545b65074d8d20a274347ca306bf092a
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1141055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Deepak Nibade
2016-05-04 11:56:24 +05:30
committed by Terje Bergstrom
parent b9cb2481ad
commit 8beea96fad

View File

@@ -24,16 +24,12 @@
struct channel_gk20a;
struct platform_device;
#ifdef CONFIG_GK20A
int nvhost_vpr_info_fetch(void);
#if defined(CONFIG_GK20A) && defined(CONFIG_PM)
int gk20a_do_idle(void);
int gk20a_do_unidle(void);
#else
static inline int nvhost_vpr_info_fetch(void)
{
return -ENOSYS;
}
static inline int gk20a_do_idle(void) { return -ENOSYS; }
static inline int gk20a_do_unidle(void) { return -ENOSYS; }
#endif
#endif