.. | .. |
---|
167 | 167 | schedule_work(&qca->tx_work); |
---|
168 | 168 | } |
---|
169 | 169 | |
---|
170 | | -static struct serdev_device_ops qca_serdev_ops = { |
---|
| 170 | +static const struct serdev_device_ops qca_serdev_ops = { |
---|
171 | 171 | .receive_buf = qca_tty_receive, |
---|
172 | 172 | .write_wakeup = qca_tty_wakeup, |
---|
173 | 173 | }; |
---|
.. | .. |
---|
248 | 248 | return NETDEV_TX_OK; |
---|
249 | 249 | } |
---|
250 | 250 | |
---|
251 | | -static void qcauart_netdev_tx_timeout(struct net_device *dev) |
---|
| 251 | +static void qcauart_netdev_tx_timeout(struct net_device *dev, unsigned int txqueue) |
---|
252 | 252 | { |
---|
253 | 253 | struct qcauart *qca = netdev_priv(dev); |
---|
254 | 254 | |
---|
.. | .. |
---|
285 | 285 | { |
---|
286 | 286 | struct qcauart *qca = netdev_priv(dev); |
---|
287 | 287 | |
---|
288 | | - if (qca->rx_skb) |
---|
289 | | - dev_kfree_skb(qca->rx_skb); |
---|
| 288 | + dev_kfree_skb(qca->rx_skb); |
---|
290 | 289 | } |
---|
291 | 290 | |
---|
292 | 291 | static const struct net_device_ops qcauart_netdev_ops = { |
---|
.. | .. |
---|
351 | 350 | |
---|
352 | 351 | mac = of_get_mac_address(serdev->dev.of_node); |
---|
353 | 352 | |
---|
354 | | - if (mac) |
---|
| 353 | + if (!IS_ERR(mac)) |
---|
355 | 354 | ether_addr_copy(qca->net_dev->dev_addr, mac); |
---|
356 | 355 | |
---|
357 | 356 | if (!is_valid_ether_addr(qca->net_dev->dev_addr)) { |
---|