| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/mach-pxa/ssp.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 2003 Russell King. |
|---|
| 7 | 8 | * 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. |
|---|
| 12 | 9 | * |
|---|
| 13 | 10 | * PXA2xx SSP driver. This provides the generic core for simple |
|---|
| 14 | 11 | * IO-based SSP applications and allows easy port setup for DMA access. |
|---|
| .. | .. |
|---|
| 92 | 89 | ssp->use_count--; |
|---|
| 93 | 90 | ssp->label = NULL; |
|---|
| 94 | 91 | } else |
|---|
| 95 | | - dev_err(&ssp->pdev->dev, "device already free\n"); |
|---|
| 92 | + dev_err(ssp->dev, "device already free\n"); |
|---|
| 96 | 93 | mutex_unlock(&ssp_lock); |
|---|
| 97 | 94 | } |
|---|
| 98 | 95 | EXPORT_SYMBOL(pxa_ssp_free); |
|---|
| .. | .. |
|---|
| 121 | 118 | if (ssp == NULL) |
|---|
| 122 | 119 | return -ENOMEM; |
|---|
| 123 | 120 | |
|---|
| 124 | | - ssp->pdev = pdev; |
|---|
| 121 | + ssp->dev = dev; |
|---|
| 125 | 122 | |
|---|
| 126 | 123 | ssp->clk = devm_clk_get(dev, NULL); |
|---|
| 127 | 124 | if (IS_ERR(ssp->clk)) |
|---|