Skip to content

Commit

Permalink
Pull misc into release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Aug 25, 2007
2 parents a3a1b26 + 5e1f198 commit a4fd494
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/acpi/namespace/nsxfeval.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ acpi_ns_get_device_callback(acpi_handle obj_handle,
******************************************************************************/

acpi_status
acpi_get_devices(char *HID,
acpi_get_devices(const char *HID,
acpi_walk_callback user_function,
void *context, void **return_value)
{
Expand Down
5 changes: 3 additions & 2 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ struct acpi_device_bus_id{
* e.g. on a device with hid:IBM0001 and cid:ACPI0001 you get:
* char *modalias: "acpi:IBM0001:ACPI0001"
*/
int create_modalias(struct acpi_device *acpi_dev, char *modalias, int size){

static int create_modalias(struct acpi_device *acpi_dev, char *modalias,
int size)
{
int len;

if (!acpi_dev->flags.hardware_id)
Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/sleep/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int wake, int *d_min_p)
unsigned long d_min, d_max;

if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &adev))) {
printk(KERN_ERR "ACPI handle has no context!\n");
printk(KERN_DEBUG "ACPI handle has no context!\n");
return -ENODEV;
}

Expand Down
1 change: 1 addition & 0 deletions drivers/acpi/utilities/utglobal.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ const char *acpi_format_exception(acpi_status status)
"Unknown exception code: 0x%8.8X", status));

exception = "UNKNOWN_STATUS_CODE";
dump_stack();
}

return (ACPI_CAST_PTR(const char, exception));
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/acpiphp_ibm.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle,

status = acpi_get_object_info(handle, &info_buffer);
if (ACPI_FAILURE(status)) {
err("%s: Failed to get device information", __FUNCTION__);
err("%s: Failed to get device information\n", __FUNCTION__);
return 0;
}
info.hardware_id.value[sizeof(info.hardware_id.value) - 1] = '\0';
Expand Down
2 changes: 1 addition & 1 deletion include/acpi/acpixf.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ acpi_walk_namespace(acpi_object_type type,
void *context, void **return_value);

acpi_status
acpi_get_devices(char *HID,
acpi_get_devices(const char *HID,
acpi_walk_callback user_function,
void *context, void **return_value);

Expand Down
2 changes: 1 addition & 1 deletion include/acpi/acstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct acpi_init_walk_info {
struct acpi_get_devices_info {
acpi_walk_callback user_function;
void *context;
char *hid;
const char *hid;
};

union acpi_aml_operands {
Expand Down

0 comments on commit a4fd494

Please sign in to comment.