sata_dwc_460ex: convert to devm_kzalloc in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 8 Jan 2015 10:50:14 +0000 (12:50 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 8 Jan 2015 13:30:48 +0000 (08:30 -0500)
commitd537fc0c0e23ce87201cb763bf040e730834f94d
tree3a9076f23e0fa7767f8a9576cdd83a44dd92f0d1
parentc592b74f6b8ba72cb0b5a90ceb0989fc35fc1391
sata_dwc_460ex: convert to devm_kzalloc in ->probe()

The patch converts ->probe() to use devm_kzalloc that simplifies error path.
Note that ata_host_alloc_pinfo() has been using device resources already.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c