Re: [PATCH] i2c: driver for the Synopsys DesignWare I2C controller

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

 



2009/5/28 Baruch Siach <baruch@xxxxxxxxxx>:

>> > +static int dw_i2c_probe(struct platform_device *pdev)
>>
>> Can you tag this with __init?
>
> OK. __devinit is probably better.

(and same for exit)

Look in include/linux/init.h for the use of these macros. There
are many, many erroneous drivers in the kernel, and I think it
is mainly due to the fact that __devinit looks like it has something
to do with "devices", while it does not.

It should be named __hotpluginit or something so one can see
what it actually is.

I don't think any platform_device tagged with __devinit is
correct really, platform_device:s cannot  be hotplugged that's
against the definition of a platform_device.

I should make more cleanup patches regarding this...

Linus
--
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