chip.c (3e4715ec58ff48015270971f33eafc956cf5ca3f) | chip.c (63368a7416df144b713ef1a887dba11796907e05) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Marvell 88e6xxx Ethernet switch single-chip support 4 * 5 * Copyright (c) 2008 Marvell Semiconductor 6 * 7 * Copyright (c) 2016 Andrew Lunn <andrew@lunn.ch> 8 * --- 5213 unchanged lines hidden (view full) --- 5222 5223 info = mv88e6xxx_lookup_info(prod_num); 5224 if (!info) 5225 return -ENODEV; 5226 5227 /* Update the compatible info with the probed one */ 5228 chip->info = info; 5229 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Marvell 88e6xxx Ethernet switch single-chip support 4 * 5 * Copyright (c) 2008 Marvell Semiconductor 6 * 7 * Copyright (c) 2016 Andrew Lunn <andrew@lunn.ch> 8 * --- 5213 unchanged lines hidden (view full) --- 5222 5223 info = mv88e6xxx_lookup_info(prod_num); 5224 if (!info) 5225 return -ENODEV; 5226 5227 /* Update the compatible info with the probed one */ 5228 chip->info = info; 5229 |
5230 err = mv88e6xxx_g2_require(chip); 5231 if (err) 5232 return err; 5233 | |
5234 dev_info(chip->dev, "switch 0x%x detected: %s, revision %u\n", 5235 chip->info->prod_num, chip->info->name, rev); 5236 5237 return 0; 5238} 5239 5240static struct mv88e6xxx_chip *mv88e6xxx_alloc_chip(struct device *dev) 5241{ --- 735 unchanged lines hidden --- | 5230 dev_info(chip->dev, "switch 0x%x detected: %s, revision %u\n", 5231 chip->info->prod_num, chip->info->name, rev); 5232 5233 return 0; 5234} 5235 5236static struct mv88e6xxx_chip *mv88e6xxx_alloc_chip(struct device *dev) 5237{ --- 735 unchanged lines hidden --- |