[amd] common: remove useless dependency on DRM

This commit is contained in:
Geoffrey McRae 2020-11-14 09:27:49 +11:00
parent 01074a6010
commit 331f44820e
4 changed files with 9 additions and 3 deletions

View File

@ -20,7 +20,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include <drm/drm_print.h>
//#include <drm/drm_print.h>
#include "atomfirmware.h"
#include "amdgpu_atomfirmware.h"

View File

@ -33,7 +33,7 @@
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/types.h>
#include <drm/drm_print.h>
//#include <drm/drm_print.h>
/*
* BIOS.
*/

View File

@ -21,7 +21,7 @@
*
*/
#include <drm/drm_print.h>
//#include <drm/drm_print.h>
#include "common.h"
#include "amdgpu_device.h"
#include "amdgpu_discovery.h"

View File

@ -23,6 +23,12 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <linux/kernel.h>
#include "vendor-reset-dev.h"
/* these are to remove the dependency on DRM */
#define DRM_INFO(fmt, args...) pr_info("vendor-reset-drm: " fmt, ##args)
#define DRM_ERROR(fmt, args...) pr_err("vendor-reset-drm: " fmt, ##args)
#define DRM_DEBUG(fmt, args...) pr_debug("vendor-reset-drm: " fmt, ##args)
#define RREG32(reg) \
({ \
u32 __out; \