union acpi_object atpx_arg_elements[2];
struct acpi_object_list atpx_arg;
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
- struct acpi_device *adev = container_of(handle, struct acpi_device, handle);
- struct device *dev = &adev->dev;
atpx_arg.count = 2;
atpx_arg.pointer = &atpx_arg_elements[0];
/* Fail only if calling the method fails and ATPX is supported */
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
- dev_err(dev, "failed to evaluate ATPX got %s\n",
- acpi_format_exception(status));
+ pr_err("failed to evaluate ATPX got %s\n",
+ acpi_format_exception(status));
kfree(buffer.pointer);
return NULL;
}
static int radeon_atpx_validate(struct radeon_atpx *atpx)
{
u32 valid_bits = 0;
- struct acpi_device *adev = container_of(atpx->handle, struct acpi_device, handle);
- struct device *dev = &adev->dev;
if (atpx->functions.px_params) {
union acpi_object *info;
size = *(u16 *) info->buffer.pointer;
if (size < 10) {
- dev_err(dev, "ATPX buffer is too small: %zu\n", size);
+ pr_err("ATPX buffer is too small: %zu\n", size);
kfree(info);
return -EINVAL;
}
atpx->is_hybrid = false;
if (valid_bits & ATPX_MS_HYBRID_GFX_SUPPORTED) {
- dev_info(dev, "ATPX Hybrid Graphics\n");
+ pr_info("ATPX Hybrid Graphics\n");
/*
* Disable legacy PM methods only when pcie port PM is usable,
* otherwise the device might fail to power off or power on.