hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm/plat-pxa/ssp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-pxa/ssp.c
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Copyright (C) 2003 Russell King.
78 * Copyright (C) 2003 Wolfson Microelectronics PLC
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
129 *
1310 * PXA2xx SSP driver. This provides the generic core for simple
1411 * IO-based SSP applications and allows easy port setup for DMA access.
....@@ -92,7 +89,7 @@
9289 ssp->use_count--;
9390 ssp->label = NULL;
9491 } else
95
- dev_err(&ssp->pdev->dev, "device already free\n");
92
+ dev_err(ssp->dev, "device already free\n");
9693 mutex_unlock(&ssp_lock);
9794 }
9895 EXPORT_SYMBOL(pxa_ssp_free);
....@@ -121,7 +118,7 @@
121118 if (ssp == NULL)
122119 return -ENOMEM;
123120
124
- ssp->pdev = pdev;
121
+ ssp->dev = dev;
125122
126123 ssp->clk = devm_clk_get(dev, NULL);
127124 if (IS_ERR(ssp->clk))