regulator: Fix for v5.2
Just one driver specific fix here, for a boot regression introduced during some modernization work on the tps6507x driver. -----BEGIN PGP SIGNATURE----- iQFHBAABCgAxFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlz+aOcTHGJyb29uaWVA a2VybmVsLm9yZwAKCRAk1otyXVSH0PtiB/96XSSJtLQxArYN2tnTPzeq2asZK3y6 nH1r+d9GAbAj8rIzO9qRSEz/x9oZcikYqR2QdyXSI4pJNH+KRbNpktMTq5HHtm7E 9KNRtz8Ni4dR6Paz04vWA2gUaEps5uMCMDKk38gnL21PLQlaaAn4M0TN/iBBLdgR 8n8tTgPez6gyqtZZ17cwyHAKh4z7Vln5Ps+dyHwLbbzXg0RFwGwRXXIVLFfnGu9E euBinP6MS3SYvbgnas0+5uXbpGNhXeVPSKnP+muRvTkCs9TxjgV55IUhrWaxXb3+ mrhgElvZ45AwqpQbyQ1+dW7nXQhzFLK6YCVD25BfNe5iq4o1GAjI61CJ =Dz+r -----END PGP SIGNATURE----- Merge tag 'regulator-fix-v5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull regulator fix from Mark Brown: "Just one driver specific fix here, for a boot regression introduced during some modernization work on the tps6507x driver" * tag 'regulator-fix-v5.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: tps6507x: Fix boot regression due to testing wrong init_data pointer
This commit is contained in:
commit
5e3b6b8ecc
|
@ -403,12 +403,12 @@ static int tps6507x_pmic_probe(struct platform_device *pdev)
|
|||
/* common for all regulators */
|
||||
tps->mfd = tps6507x_dev;
|
||||
|
||||
for (i = 0; i < TPS6507X_NUM_REGULATOR; i++, info++, init_data++) {
|
||||
for (i = 0; i < TPS6507X_NUM_REGULATOR; i++, info++) {
|
||||
/* Register the regulators */
|
||||
tps->info[i] = info;
|
||||
if (init_data && init_data->driver_data) {
|
||||
if (init_data && init_data[i].driver_data) {
|
||||
struct tps6507x_reg_platform_data *data =
|
||||
init_data->driver_data;
|
||||
init_data[i].driver_data;
|
||||
info->defdcdc_default = data->defdcdc_default;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue