summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lm73.c
diff options
context:
space:
mode:
authorLarry Johnson <lrj@acm.org>2008-01-09 12:42:35 -0500
committerWolfgang Denk <wd@denx.de>2008-01-12 00:26:47 +0100
commit92fa37eac530860643afa26ae347af3d23d67309 (patch)
treede5a83022e92e374908ba4c8ef49ffccb6f37ac1 /drivers/hwmon/lm73.c
parentefc6f447c1b940d1650c4b854c5598a595ddc3da (diff)
downloadu-boot-imx-92fa37eac530860643afa26ae347af3d23d67309.zip
u-boot-imx-92fa37eac530860643afa26ae347af3d23d67309.tar.gz
u-boot-imx-92fa37eac530860643afa26ae347af3d23d67309.tar.bz2
Remove superfluous preprocessor conditionals from LM73 driver
(1) Remove unused symbol "CFG_EEPROM_PAGE_WRITE_ENABLE". (2) Use conditional Makefile.o. Signed-off-by: Larry Johnson <lrj@acm.org>
Diffstat (limited to 'drivers/hwmon/lm73.c')
-rw-r--r--drivers/hwmon/lm73.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c
index f9ae012..db8ef66 100644
--- a/drivers/hwmon/lm73.c
+++ b/drivers/hwmon/lm73.c
@@ -31,13 +31,6 @@
*/
#include <common.h>
-
-#ifdef CONFIG_DTT_LM73
-#if !defined(CFG_EEPROM_PAGE_WRITE_ENABLE) || \
- (CFG_EEPROM_PAGE_WRITE_BITS < 1)
-# error "CFG_EEPROM_PAGE_WRITE_ENABLE must be defined and CFG_EEPROM_PAGE_WRITE_BITS must be greater than 1 to use CONFIG_DTT_LM73"
-#endif
-
#include <i2c.h>
#include <dtt.h>
@@ -177,5 +170,3 @@ int dtt_get_temp(int sensor)
{
return (dtt_read(sensor, DTT_READ_TEMP) + 0x0040) >> 7;
} /* dtt_get_temp() */
-
-#endif /* CONFIG_DTT_LM73 */