Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab4d2b88 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: smb135x-charger: remove unused match node



The match node is not used in smb_parse_dt function. Remove it.

Change-Id: I44591228c5a4f26299bf4a9a95fdb11132ccdb33
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent ee794fa1
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2902,7 +2902,6 @@ static int smb_parse_dt(struct smb135x_chg *chip)
{
	int rc;
	struct device_node *node = chip->dev->of_node;
	const struct of_device_id *match;
	const char *dc_psy_type;

	if (!node) {
@@ -2910,14 +2909,6 @@ static int smb_parse_dt(struct smb135x_chg *chip)
		return -EINVAL;
	}

	match = of_match_node(smb135x_match_table, node);
	if (match == NULL) {
		dev_err(chip->dev, "device tree match not found\n");
		return -EINVAL;
	}

	chip->usb_current_arr_size = (int)match->data;

	rc = of_property_read_u32(node, "qcom,float-voltage-mv",
						&chip->vfloat_mv);
	if (rc < 0)