NVIDIA drivers 460.73.01 and 460.80 fail to compile

The NVIDIA drivers 460.73.01 and 460.80 fail to compile on a kernel built without the CONFIG_PM option. Below error is logged in the /var/log/nvidia-installer.log file.

/tmp/selfgz927869/NVIDIA-Linux-x86_64-460.80/kernel/nvidia/nv.c: In function 'nv_audio_dynamic_power':
   /tmp/selfgz927869/NVIDIA-Linux-x86_64-460.80/kernel/nvidia/nv.c:5235:37: error: 'struct dev_pm_info' has no member named 'runtime_status'
            if (audio_pci_dev->dev.power.runtime_status == RPM_ACTIVE)
                                        ^
   make[2]: *** [scripts/Makefile.build:262: /tmp/selfgz927869/NVIDIA-Linux-x86_64-460.80/kernel/nvidia/nv.o] Error 1

The kernel is custom kernel built without the CONFIG_PM option. An #ifdef around the necessary code should fix the failure. The NVIDIA driver v460.32.03 compiles and installs fine.