Commit Graph
9 Commits
Author SHA1 Message Date
Wolfram Sang 65c662ab63 ata: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <[email protected]>
2014-10-20 16:20:17 +02:00
Paul Gortmaker 1bc1808623 ata: delete non-required instances of include <linux/init.h>
None of these files are actually using any __init type directives
and hence don't need to include <linux/init.h>.  Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.

Cc: [email protected]
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2014-02-13 16:40:56 -05:00
Jingoo Han 61b8c345aa ata: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2013-07-30 08:59:24 -04:00
Jingoo Han d89995db5f ata: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using
platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
so we can directly pass a struct platform_device.

Also, unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2013-05-24 10:26:13 +09:00
Greg Kroah-Hartman 0ec2491467 Drivers: ata: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <[email protected]>
Cc: Jeff Garzik <[email protected]>
Cc: Viresh Kumar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2013-01-03 15:57:03 -08:00
Arnd Bergmann 293b2da1b6 ARM: pxa: move platform_data definitions
Platform data for device drivers should be defined in
include/linux/platform_data/*.h, not in the architecture
and platform specific directories.

This moves such data out of the pxa include directories

Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Mark Brown <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Igor Grinberg <[email protected]>
Acked-by: Jeff Garzik <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Acked-by: Paul Parsons <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Acked-By: Stefan Schmidt <[email protected]>
Cc: Eric Miao <[email protected]>
Cc: Haojian Zhuang <[email protected]>
Cc: Daniel Ribeiro <[email protected]>
Cc: Harald Welte <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Tomas Cech <[email protected]>
Cc: Sergey Lapin <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Chris Ball <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Samuel Ortiz <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Cc: Liam Girdwood <[email protected]>
Cc: Jaroslav Kysela <[email protected]>
Cc: Takashi Iwai <[email protected]>
Cc: Guennadi Liakhovetski <[email protected]>
Cc: Artem Bityutskiy <[email protected]>
Cc: [email protected]
2012-09-14 11:18:10 +02:00
Axel Lin 99c8ea3e57 SATA/PATA: convert drivers/ata/* to use module_platform_driver()
This patch converts the drivers in drivers/ata/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Cc: Viresh Kumar <[email protected]>
Cc: Jeff Garzik <[email protected]>
Cc: Arnaud Patard <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Sylvain Munaut <[email protected]>
Cc: Anton Vorontsov <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Mark Miesfeld <[email protected]>
Cc: Ashish Kalra <[email protected]>
Cc: Paul Mundt <[email protected]>
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
2012-01-08 19:14:58 -05:00
Sergei Shtylyov 3696df3099 libata: remove ATA_FLAG_MMIO
Commit 0d5ff56677 (libata: convert to iomap)
removed all checks of ATA_FLAG_MMIO but neglected to remove the flag itself.
Do it now, at last...

Signed-off-by: Sergei Shtylyov <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
2011-03-02 02:36:46 -05:00
Marek Vasut 2dc6c6f15d [ARM] pata_pxa: DMA-capable PATA driver
This patch adds a driver for a harddrive attached to PXA address and data bus.
Unlike pata_platform, this driver allows usage of PXA DMA controller, making the
transmission speed 3x higher.

Signed-off-by: Marek Vasut <[email protected]>
Acked-by: Jeff Garzik <[email protected]>
Signed-off-by: Eric Miao <[email protected]>
2010-06-18 15:07:32 +08:00