Commit 19e138e4 authored by Martin Povišer's avatar Martin Povišer Committed by Wolfram Sang

i2c: pasemi: Drop I2C classes from platform driver variant

Drop I2C device-probing classes from platform variant of the PASemi
controller as it is only used on platforms where I2C devices should
be instantiated in devicetree. (The I2C_CLASS_DEPRECATED flag is not
raised as up to this point no devices relied on the old behavior.)

Fixes: d88ae293 ("i2c: pasemi: Add Apple platform driver")
Signed-off-by: default avatarMartin Povišer <povik+lin@cutebit.org>
Reviewed-by: default avatarSven Peter <sven@svenpeter.dev>
Acked-by: default avatarHector Martin <marcan@marcan.st>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 1e4fe543
......@@ -333,7 +333,6 @@ int pasemi_i2c_common_probe(struct pasemi_smbus *smbus)
smbus->adapter.owner = THIS_MODULE;
snprintf(smbus->adapter.name, sizeof(smbus->adapter.name),
"PA Semi SMBus adapter (%s)", dev_name(smbus->dev));
smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
smbus->adapter.algo = &smbus_algorithm;
smbus->adapter.algo_data = smbus;
......
......@@ -56,6 +56,7 @@ static int pasemi_smb_pci_probe(struct pci_dev *dev,
if (!smbus->ioaddr)
return -EBUSY;
smbus->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
error = pasemi_i2c_common_probe(smbus);
if (error)
return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment