Re: acpi: struct device - replace bus_id with dev_name(), dev_set_name()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



applied
thanks,
--
Len Brown, Intel Open Source Technology Center

On Sun, 25 Jan 2009, Kay Sievers wrote:

> From: Kay Sievers <kay.sievers@xxxxxxxx>
> Subject: acpi: struct device - replace bus_id with dev_name(), dev_set_name()
> 
> Cc: lenb@xxxxxxxxxx
> Cc: linux-acpi@xxxxxxxxxxxxxxx
> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
> Signed-off-by: Kay Sievers <kay.sievers@xxxxxxxx>
> 
> ---
>  drivers/acpi/glue.c |    8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> --- a/drivers/acpi/glue.c
> +++ b/drivers/acpi/glue.c
> @@ -255,12 +255,12 @@ static int acpi_platform_notify(struct d
>  	}
>  	type = acpi_get_bus_type(dev->bus);
>  	if (!type) {
> -		DBG("No ACPI bus support for %s\n", dev->bus_id);
> +		DBG("No ACPI bus support for %s\n", dev_name(dev));
>  		ret = -EINVAL;
>  		goto end;
>  	}
>  	if ((ret = type->find_device(dev, &handle)) != 0)
> -		DBG("Can't get handler for %s\n", dev->bus_id);
> +		DBG("Can't get handler for %s\n", dev_name(dev));
>        end:
>  	if (!ret)
>  		acpi_bind_one(dev, handle);
> @@ -271,10 +271,10 @@ static int acpi_platform_notify(struct d
>  
>  		acpi_get_name(dev->archdata.acpi_handle,
>  			      ACPI_FULL_PATHNAME, &buffer);
> -		DBG("Device %s -> %s\n", dev->bus_id, (char *)buffer.pointer);
> +		DBG("Device %s -> %s\n", dev_name(dev), (char *)buffer.pointer);
>  		kfree(buffer.pointer);
>  	} else
> -		DBG("Device %s -> No ACPI support\n", dev->bus_id);
> +		DBG("Device %s -> No ACPI support\n", dev_name(dev));
>  #endif
>  
>  	return ret;
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> From: Kay Sievers <kay.sievers@xxxxxxxx>
> Subject: acpi: struct device - replace bus_id with dev_name(), dev_set_name()
> 
> Cc: lenb@xxxxxxxxxx
> Cc: linux-acpi@xxxxxxxxxxxxxxx
> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
> Signed-off-by: Kay Sievers <kay.sievers@xxxxxxxx>
> 
> ---
>  drivers/acpi/glue.c |    8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> --- a/drivers/acpi/glue.c
> +++ b/drivers/acpi/glue.c
> @@ -255,12 +255,12 @@ static int acpi_platform_notify(struct d
>  	}
>  	type = acpi_get_bus_type(dev->bus);
>  	if (!type) {
> -		DBG("No ACPI bus support for %s\n", dev->bus_id);
> +		DBG("No ACPI bus support for %s\n", dev_name(dev));
>  		ret = -EINVAL;
>  		goto end;
>  	}
>  	if ((ret = type->find_device(dev, &handle)) != 0)
> -		DBG("Can't get handler for %s\n", dev->bus_id);
> +		DBG("Can't get handler for %s\n", dev_name(dev));
>        end:
>  	if (!ret)
>  		acpi_bind_one(dev, handle);
> @@ -271,10 +271,10 @@ static int acpi_platform_notify(struct d
>  
>  		acpi_get_name(dev->archdata.acpi_handle,
>  			      ACPI_FULL_PATHNAME, &buffer);
> -		DBG("Device %s -> %s\n", dev->bus_id, (char *)buffer.pointer);
> +		DBG("Device %s -> %s\n", dev_name(dev), (char *)buffer.pointer);
>  		kfree(buffer.pointer);
>  	} else
> -		DBG("Device %s -> No ACPI support\n", dev->bus_id);
> +		DBG("Device %s -> No ACPI support\n", dev_name(dev));
>  #endif
>  
>  	return ret;
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux