Re: [PATCH 14/16] i2c-ali1563: remove __dev* attributes

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

 



Hi Bill,

On Tue, 27 Nov 2012 15:59:51 -0500, Bill Pemberton wrote:
> CONFIG_HOTPLUG is going away as an option.  As result the __dev*
> markings will be going away.
> 
> Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
> and __devexit.
> 
> Signed-off-by: Bill Pemberton <wfp5p@xxxxxxxxxxxx>
> Cc: Rudolf Marek <r.marek@xxxxxxxxxxxx>
> Cc: Jean Delvare <khali@xxxxxxxxxxxx>
> ---
>  drivers/i2c/busses/i2c-ali1563.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-ali1563.c b/drivers/i2c/busses/i2c-ali1563.c
> index e02d9f8..5b17c9f 100644
> --- a/drivers/i2c/busses/i2c-ali1563.c
> +++ b/drivers/i2c/busses/i2c-ali1563.c
> @@ -326,7 +326,7 @@ static u32 ali1563_func(struct i2c_adapter * a)
>  }
>  
>  
> -static int __devinit ali1563_setup(struct pci_dev * dev)
> +static int ali1563_setup(struct pci_dev * dev)

While you're here, it would be great if you could fix the checkpatch
errors on the lines you touch:

ERROR: "foo * bar" should be "foo *bar"
#91: FILE: drivers/i2c/busses/i2c-ali1563.c:329:
+static int ali1563_setup(struct pci_dev * dev)

and same twice below. Thanks.

>  {
>  	u16 ctrl;
>  
> @@ -390,7 +390,7 @@ static struct i2c_adapter ali1563_adapter = {
>  	.algo	= &ali1563_algorithm,
>  };
>  
> -static int __devinit ali1563_probe(struct pci_dev * dev,
> +static int ali1563_probe(struct pci_dev * dev,
>  				const struct pci_device_id * id_table)
>  {
>  	int error;
> @@ -411,7 +411,7 @@ exit:
>  	return error;
>  }
>  
> -static void __devexit ali1563_remove(struct pci_dev * dev)
> +static void ali1563_remove(struct pci_dev * dev)
>  {
>  	i2c_del_adapter(&ali1563_adapter);
>  	ali1563_shutdown(dev);
> @@ -428,7 +428,7 @@ static struct pci_driver ali1563_pci_driver = {
>   	.name		= "ali1563_smbus",
>  	.id_table	= ali1563_id_table,
>   	.probe		= ali1563_probe,
> -	.remove		= __devexit_p(ali1563_remove),
> +	.remove		= ali1563_remove,
>  };
>  
>  module_pci_driver(ali1563_pci_driver);


-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux