diff options
author | Joe Perches <joe@perches.com> | 2017-02-28 07:55:52 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:53:24 -0400 |
commit | 7ca85295d8cc280ea79cf6250c47363b7fd92f92 (patch) | |
tree | efcd4b095533ddbb7e03dc305403fde3873d940c /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | eeca2324900e922b693b2b6ddacc502c78f1c1ef (diff) |
gpu: drm: amd/radeon: Convert printk(KERN_<LEVEL> to pr_<level>
Use a more common logging style.
Miscellanea:
o Coalesce formats and realign arguments
o Neaten a few macros now using pr_<level>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index cc01b3f27a1f..e71a89c73684 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1059,7 +1059,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero | |||
1059 | if (state == VGA_SWITCHEROO_ON) { | 1059 | if (state == VGA_SWITCHEROO_ON) { |
1060 | unsigned d3_delay = dev->pdev->d3_delay; | 1060 | unsigned d3_delay = dev->pdev->d3_delay; |
1061 | 1061 | ||
1062 | printk(KERN_INFO "amdgpu: switched on\n"); | 1062 | pr_info("amdgpu: switched on\n"); |
1063 | /* don't suspend or resume card normally */ | 1063 | /* don't suspend or resume card normally */ |
1064 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; | 1064 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; |
1065 | 1065 | ||
@@ -1070,7 +1070,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero | |||
1070 | dev->switch_power_state = DRM_SWITCH_POWER_ON; | 1070 | dev->switch_power_state = DRM_SWITCH_POWER_ON; |
1071 | drm_kms_helper_poll_enable(dev); | 1071 | drm_kms_helper_poll_enable(dev); |
1072 | } else { | 1072 | } else { |
1073 | printk(KERN_INFO "amdgpu: switched off\n"); | 1073 | pr_info("amdgpu: switched off\n"); |
1074 | drm_kms_helper_poll_disable(dev); | 1074 | drm_kms_helper_poll_disable(dev); |
1075 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; | 1075 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; |
1076 | amdgpu_device_suspend(dev, true, true); | 1076 | amdgpu_device_suspend(dev, true, true); |