Răsfoiți Sursa

libata: samsung_cf: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Krzysztof Kozlowski 10 ani în urmă
părinte
comite
3b6eefc1c9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/ata/pata_samsung_cf.c

+ 1 - 1
drivers/ata/pata_samsung_cf.c

@@ -638,7 +638,7 @@ static const struct dev_pm_ops pata_s3c_pm_ops = {
 #endif
 #endif
 
 
 /* driver device registration */
 /* driver device registration */
-static struct platform_device_id pata_s3c_driver_ids[] = {
+static const struct platform_device_id pata_s3c_driver_ids[] = {
 	{
 	{
 		.name		= "s3c64xx-pata",
 		.name		= "s3c64xx-pata",
 		.driver_data	= TYPE_S3C64XX,
 		.driver_data	= TYPE_S3C64XX,